estate_brahmins_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_brahmins
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_brahmins_land_rights }
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_brahmins_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_brahmins_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_brahmins_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_brahmins_land_rights
				}
			}
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_nobles_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_nobles
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_nobles_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_nobles_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_nobles_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_nobles_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_nobles_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_church_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_church
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_church_land_rights }
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_church_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_church_land_rights
				}
			}
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_church_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_church_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_maratha_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_maratha
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_maratha_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_maratha_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_maratha_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_maratha_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_maratha_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_burghers_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_burghers
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_burghers_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_burghers_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_burghers_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_burghers_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_burghers_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_vaisyas_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_vaisyas
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_vaisyas_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_vaisyas_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_vaisyas_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_vaisyas_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_vaisyas_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_cossacks_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_cossacks
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_cossacks_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_cossacks_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_cossacks_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_cossacks_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_cossacks_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_nomadic_tribes_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_nomadic_tribes
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_nomadic_tribes_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_nomadic_tribes_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_nomadic_tribes_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_nomadic_tribes_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_nomadic_tribes_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_dhimmi_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_dhimmi
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_dhimmi_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_dhimmi_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_dhimmi_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_dhimmi_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_dhimmi_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_jains_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_jains
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_jains_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_jains_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_jains_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_jains_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_jains_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_rajput_land_rights
		}
	}
}

estate_rajput_land_rights = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		governing_capacity = 100
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.4
			num_of_territories = 5
		}
		modifier = {
			factor = 1.5
			num_of_territories = 10
		}
		modifier = {
			factor = 1.5
			num_of_territories = 15
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_rajput
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_rajput_land_rights }
		}
		modifier = {
			factor = 3
			OR = {
				AND = {
					governing_capacity_percentage = 0.9
					NOT = { has_estate_privilege = estate_rajput_land_rights }
				}
				#The trigger below should make sure that the AI actually keeps this privilege when enacting it early game
				AND = {
					governing_capacity_percentage = 0.6
					has_estate_privilege = estate_rajput_land_rights
				}
			}
		}
		modifier = {
			factor = 0
			NOT = { governing_capacity_percentage = 0.5 }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 40 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 60 }
				}
			}
			NOT = { has_estate_privilege = estate_rajput_land_rights }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 30 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 50 }
				}
			}
			NOT = { has_estate_privilege = estate_rajput_land_rights }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			governing_capacity_percentage = 0.9
		}
		modifier = {
			factor = 3
			governing_capacity_percentage = 1
		}
		modifier = {
			factor = 10
			governing_capacity_percentage = 1.2
		}
		modifier = {
			factor = 8
			NOT = { adm_tech = 12 }
			governing_capacity_percentage = 0.8
		}
		modifier = {
			factor = 5
			NOT = { adm_tech = 12 }
			NOT = { government_rank = 1 }
			governing_capacity_percentage = 0.65
		}
		#Tag specific convincement - after tech 17 (+250 governing capacity) it should not play a role anymore
		modifier = {
			factor = 1.25
			tag = MOS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = RUS
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = TUR
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = MNG
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = FRA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = SPA
			NOT = { adm_tech = 17 }
		}
		modifier = {
			factor = 1.25
			tag = PLC
			NOT = { adm_tech = 17 }
		}
		#Has already a similar privilege active
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_brahmins_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nobles_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_church_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_maratha_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_burghers_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_vaisyas_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_cossacks_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_nomadic_tribes_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_dhimmi_land_rights
		}
		modifier = {
			factor = 0.75
			has_estate_privilege = estate_jains_land_rights
		}
	}
}



estate_nobles_nobility_primacy = {
	icon = privilege_military_power
	land_share = 10
	max_absolutism = -5
	loyalty = -0.05
	can_select = {
		custom_trigger_tooltip = {
			tooltip = no_other_mil_privilege
			NOT = { has_estate_privilege = estate_rajput_military }
			NOT = { has_estate_privilege = estate_maratha_military }
		}
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		country_military_power = 1
	}
	ai_will_do = {
		factor = 12
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 30 }
				estate_influence = {
					estate = estate_nobles
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_nobles_nobility_primacy }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 35 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 55 }
				}
			}
			NOT = { has_estate_privilege = estate_nobles_nobility_primacy }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { mil = 2 }
		}
		modifier = {
			factor = 0.8
			mil = 5
		}
		modifier = {
			factor = 1000
			has_mission = kon_reform_army
			NOT = { mission_completed = kon_reform_army }
		}
	}
}

estate_nobles_officer_corp = {
	icon = privilege_promote_purbias
	max_absolutism = -5
	influence = 0.05
	can_select = {
		army_tradition = 30
	}
	on_granted = {
		add_army_tradition = -15
	}
	penalties = {
	}
	benefits = {
		general_cost = -0.25
		army_tradition_decay = -0.005
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nobles_levies = {
	icon = privilege_demand_more_troops
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		NOT = { has_estate_privilege = estate_nobles_golden_liberty }
	}
	can_select = {
		NOT = { has_estate_privilege = estate_nobles_golden_liberty }
	}
	modifier_by_land_ownership = {
		global_tax_modifier = -0.10
		global_manpower_modifier = 0.25
	}
	penalties = {
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.5
			any_rival_country = {
				army_strength = {
					who = root
					value = 1.5
				}
			}
		}
		modifier = {
			factor = 2
			has_idea_group = quantity_ideas
		}
		modifier = {
			factor = 1.5
			NOT = { max_manpower = 40 }
		}
		modifier = {
			factor = 0.5
			max_manpower = 200
		}
		modifier = {
			factor = 2
			estate_territory = {
				estate = estate_nobles
				territory = 50
			}
		}
		modifier = {
			factor = 1.5
			estate_territory = {
				estate = estate_nobles
				territory = 40
			}
		}
		modifier = {
			factor = 1.5
			estate_territory = {
				estate = estate_nobles
				territory = 30
			}
		}
		modifier = {
			factor = 0.5
			NOT = {
				estate_territory = {
					estate = estate_nobles
					territory = 15
				}
			}
		}
		modifier = {
			factor = 0.5
			NOT = {
				estate_territory = {
					estate = estate_nobles
					territory = 10
				}
			}
		}
		modifier = {
			factor = 0.5
			NOT = {
				estate_territory = {
					estate = estate_nobles
					territory = 5
				}
			}
		}
		modifier = {
			factor = 0.75
			NOT = { current_income_balance = 5 }
		}
		modifier = {
			factor = 0.75
			NOT = { current_income_balance = 0 }
		}
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
	}
}

estate_nobles_advisors = {
	icon = privilege_recruit_minister
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.05
	penalties = {
		stability_cost_modifier = 0.1
	}
	benefits = {
		mil_advisor_cost = -0.25
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { mil = 2 }
		}
		modifier = {
			factor = 0.8
			mil = 5
		}
	}
}

estate_nobles_right_of_counsel = {
	icon = privilege_royal_authority
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_nobles_french_strong_duchies = {
	icon = privilege_french_strong_duchies
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	is_valid = {
		OR = {
			has_estate_privilege = estate_nobles_french_strong_duchies
			AND = {
				tag = FRA
				NOT = { has_estate_privilege = estate_nobles_strong_duchies }
			}
		}
		OR = {
			any_subject_country = {
				is_march = yes
			}
			vassal = 1
		}
	}
	can_select = {
		if = {
			limit = {
				has_dlc = "Art of War"
			}
			custom_trigger_tooltip = {
				tooltip = estate_nobles_strong_duchies_trigger_tooltip
				calc_true_if = {
					amount = 2
					all_subject_country = {
						OR = {
							is_march = yes
							is_vassal = yes
						}
					}
				}
			}
		}
		else = {
			vassal = 2
		}
	}
	penalties = {
	}
	benefits = {
		diplomatic_upkeep = 3
		reduced_liberty_desire_on_same_continent = 10
	}
	ai_will_do = {
		factor = 1
		modifier = { #will lose it via invalid sooner or later
			factor = 10
			has_estate_privilege = estate_nobles_french_strong_duchies
		}
	}
}

estate_church_religious_state = {
	icon = privilege_seek_support_of_clergy
	land_share = 10
	max_absolutism = -5
	loyalty = -0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		country_admin_power = 1
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 30 }
				estate_influence = {
					estate = estate_church
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_church_religious_state }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 35 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 55 }
				}
			}
			NOT = { has_estate_privilege = estate_church_religious_state }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { adm = 2 }
		}
		modifier = {
			factor = 0.8
			adm = 5
		}
	}
}

estate_church_independent_inquisition = {
	icon = privilege_empty_throne
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.05
	penalties = {
		stability_cost_modifier = 0.1
	}
	benefits = {
		adm_advisor_cost = -0.25
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { adm = 2 }
		}
		modifier = {
			factor = 0.8
			adm = 5
		}
	}
}

estate_church_new_world_mission = {
	icon = privilege_new_world_mission
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	is_valid = {
		OR = {
			num_of_colonists = 1
			num_of_colonies = 1
		}
	}
	penalties = {
	}
	benefits = {
		native_assimilation = 0.5
	}
	ai_will_do = {
		factor = 0
	}
}

estate_church_papal_emissary = {
	icon = privilege_send_emissary_to_pope
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	is_valid = {
		religion = catholic
		NOT = { tag = PAP }
	}
	can_select = {
		papal_influence = 20
		num_of_cardinals = 1
	}
	on_granted = {
		add_papal_influence = -5
	}
	penalties = {
		curia_powers_cost = 0.05
	}
	benefits = {
		papal_influence = 1
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_part_of_hre = yes
			is_emperor = no
		}
		modifier = {
			factor = 0
			OR = {
				tag = SWE
				tag = ENG
				tag = GBR
			}
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
		modifier = {
			factor = 0.75
			NOT = {
				reverse_has_opinion = {
					who = PAP
					value = 50
				}
			}
		}
	}
}

estate_church_clerical_ministers = {
	icon = privilege_recruit_minister
	max_absolutism = -5
	influence = 0.10
	conditional_modifier = {
		trigger = {
			if = {
				limit = {
					has_dlc = "Common Sense"
				}
				NOT = { religion = protestant }
				NOT = { religion = buddhism }
				NOT = { religion = vajrayana }
				NOT = { religion = mahayana }
			}
			if = {
				limit = {
					has_dlc = "Emperor"
				}
				NOT = { religion = hussite }
			}
			if = {
				limit = {
					has_dlc = "Wealth of Nations"
				}
				NOT = { religion = reformed }
			}
			if = {
				limit = {
					has_dlc = "Cradle of Civilization"
				}
				NOT = { religion_group = muslim }
			}
			if = {
				limit = {
					has_dlc = "Mandate of Heaven"
				}
				NOT = { religion = confucianism }
			}
			if = {
				limit = {
					has_dlc = "Third Rome"
				}
				NOT = { religion = orthodox }
			}
			if = {
				limit = {
					has_dlc = "Origins"
				}
				NOT = { religion = jewish }
			}
			NOT = { religion = anglican }
		}
		modifier = {
			missionary_maintenance_cost = -0.2
		}
	}
	conditional_modifier = {
		trigger = {
			has_dlc = "Common Sense"
			OR = {
				religion = buddhism
				religion = vajrayana
				religion = mahayana
			}
		}
		modifier = {
			yearly_karma_decay = 0.005
		}
	}
	conditional_modifier = {
		trigger = {
			has_dlc = "Common Sense"
			religion = protestant
		}
		modifier = {
			church_power_modifier = 0.1
		}
	}
	conditional_modifier = {
		trigger = {
			has_dlc = "Emperor"
			religion = hussite
		}
		modifier = {
			church_power_modifier = 0.1
		}
	}
	conditional_modifier = {
		trigger = {
			has_dlc = "Origins"
			religion = jewish
		}
		modifier = {
			church_power_modifier = 0.1
		}
	}
	conditional_modifier = {
		trigger = {
			has_dlc = "Wealth of Nations"
			religion = reformed
		}
		modifier = {
			monthly_fervor_increase = 0.5
		}
	}
	conditional_modifier = {
		trigger = {
			has_dlc = "Cradle of Civilization"
			religion_group = muslim
		}
		modifier = {
			monthly_piety = 0.001
		}
	}
	conditional_modifier = {
		trigger = {
			has_dlc = "Mandate of Heaven"
			religion = confucianism
		}
		modifier = {
			yearly_harmony = 0.25
		}
	}
	conditional_modifier = {
		trigger = {
			has_dlc = "Third Rome"
			religion = orthodox
		}
		modifier = {
			yearly_patriarch_authority = 0.005
		}
	}
	conditional_modifier = {
		trigger = {
			religion = anglican
		}
		modifier = {
			church_power_modifier = 0.1
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
		modifier = {
			factor = 0.5
			OR = {
				religion = protestant
				religion = anglican
			}
			religion = protestant
			num_of_aspects = 3
		}
		modifier = {
			factor = 10
			religion = orthodox
			has_dlc = "Third Rome"
		}
	}
}

estate_church_clerical_oversight = {
	icon = privilege_tolerance_heathen
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_church_inwards_perfection = {
	icon = privilege_grant_autonomy
	land_share = 5
	max_absolutism = -5
	loyalty = 0.1
	influence = 0.05
	is_valid = {
		religion_group = eastern
	}
	can_select = {
		NOT = { has_estate_privilege = estate_church_for_the_faith }
	}
	on_granted = {
	}
	modifier_by_land_ownership = {
		development_cost = -0.15
	}
	penalties = {
		stability_cost_to_declare_war = 1
	}
	benefits = {
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 7.5
			tag = KOR
			NOT = { num_of_cities = 30 }
			religion = confucianism
			is_absolutism_active = no
		}
	}
}

estate_burghers_enforced_interfaith_dialogue = {
	icon = privilege_promoto_dhimmi_nobles
	max_absolutism = -5
	loyalty = 0.05
	is_valid = {
		any_owned_province = {
			NOT = { religion = root }
		}
		OR = {
			has_estate_privilege = estate_burghers_enforced_interfaith_dialogue
			NOT = { has_estate = estate_dhimmi }
		}
	}
	can_select = {
		NOT = { has_estate_privilege = estate_church_enforced_one_faith }
	}
	penalties = {
		church_loyalty_modifier = -0.1
	}
	benefits = {
		tolerance_heathen = 2
		tolerance_heretic = 2
	}
	ai_will_do = {
		factor = 0
	}
}

estate_church_enforced_one_faith = {
	icon = privilege_recruit_inouisitor
	max_absolutism = -5
	loyalty = 0.1
	is_valid = {
		any_owned_province = {
			NOT = { religion = root }
		}
	}
	can_select = {
		NOT = { has_estate_privilege = estate_burghers_enforced_interfaith_dialogue }
		NOT = { has_estate_privilege = estate_dhimmi_tolerance }
		NOT = { has_estate_privilege = estate_dhimmi_guarantee_of_traditions }
	}
	penalties = {
		tolerance_heathen = -2
		tolerance_heretic = -2
	}
	benefits = {
		global_missionary_strength = 0.01
		tolerance_own = 1
	}
	cooldown_years = 20
	on_cooldown_expires = {
		remove_estate_privilege = estate_church_enforced_one_faith
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_land_of_commerce = {
	icon = privilege_diplo_power
	land_share = 10
	max_absolutism = -5
	loyalty = -0.05
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		country_diplomatic_power = 1
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 30 }
				estate_influence = {
					estate = estate_burghers
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_burghers_land_of_commerce }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 35 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 55 }
				}
			}
			NOT = { has_estate_privilege = estate_burghers_land_of_commerce }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { dip = 2 }
		}
		modifier = {
			factor = 0.8
			dip = 5
		}
	}
}

estate_burghers_admirals = {
	icon = privilege_admiral
	max_absolutism = -5
	influence = 0.05
	can_select = {
		navy_tradition = 30
	}
	on_granted = {
		add_navy_tradition = -15
	}
	penalties = {
	}
	benefits = {
		admiral_cost = -0.25
		navy_tradition_decay = -0.005
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_commercial_board_of_advice = {
	icon = privilege_recruit_minister
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.05
	penalties = {
		stability_cost_modifier = 0.1
	}
	benefits = {
		dip_advisor_cost = -0.25
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { dip = 2 }
		}
		modifier = {
			factor = 0.8
			dip = 5
		}
	}
}

estate_burghers_new_world_charter = {
	icon = privilege_grant_new_world_charter
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	is_valid = {
		OR = {
			num_of_colonists = 1
			num_of_colonies = 1
		}
	}
	penalties = {
		global_tariffs = -0.10
	}
	benefits = {
		global_colonial_growth = 10
		colonist_placement_chance = 0.05
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			OR = {
				tag = POR
				tag = CAS
				tag = SPA
				tag = ENG
				tag = GBR
				tag = SCO
				tag = FRA
			}
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_burghers_indebted_to_burghers = {
	icon = privilege_give_money
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	on_granted = {
		custom_tooltip = estate_burghers_indebted_to_burghers_effect_tooltip
		add_mercantilism = -1
		tooltip = {
			add_inflation = 0.5
		}
		hidden_effect = {
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
		}
	}
	penalties = {
		trade_efficiency = -0.05
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_free_enterprise = {
	icon = privilege_comission_merchant_ships_for_war
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_cossacks_exploration_expedition = {
	icon = privilege_grant_new_world_charter
	land_share = 5
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	
	on_granted = {
		custom_tooltip = estate_cossacks_exploration_expedition_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = { has_terrain = steppe }
			add_province_modifier = {
				name = estate_cossacks_exploration_expedition_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_cossacks_exploration_expedition_mod
			}
			remove_province_modifier = estate_cossacks_exploration_expedition_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_cossacks_exploration_expedition_mod_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_cossacks_exploration_expedition_mod
			}
			remove_province_modifier = estate_cossacks_exploration_expedition_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_cossacks_exploration_expedition_mod_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_cossacks_exploration_expedition_mod
			}
			remove_province_modifier = estate_cossacks_exploration_expedition_mod
		}
	}
	penalties = {
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			OR = {
				tag = MOS
				tag = RUS
			}
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_cossacks
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_cossacks_exploration_expedition }
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_cossacks_cossack_self_governance = {
	icon = privilege_permit_self_governance
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_cossacks_establish_the_cossack_regiments = {
	icon = privilege_raise_host
	land_share = 5
	max_absolutism = -5
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	modifier_by_land_ownership = {
		special_unit_forcelimit = 0.5
	}
	penalties = {
	}
	benefits = {
	}
	mechanics = {
		enables_cossack_regiments
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			any_owned_province = {
				has_terrain = steppe
			}
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_cossacks
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_cossacks_establish_the_cossack_regiments }
		}
	}
}

estate_cossacks_expand_the_cossack_regiments = {
	icon = privilege_conscript_cossack_elite
	land_share = 5
	max_absolutism = -5
	influence = 0.05
	is_valid = {
		has_estate_privilege = estate_cossacks_establish_the_cossack_regiments
	}
	can_select = {
	}
	on_granted = {
	}
	modifier_by_land_ownership = {
		special_unit_forcelimit = 0.5
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			any_owned_province = {
				has_terrain = steppe
			}
			is_absolutism_active = no
		}
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 25 }
				estate_influence = {
					estate = estate_cossacks
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_cossacks_establish_the_cossack_regiments }
		}
	}
}

estate_dhimmi_lighter_dhimmi_taxes = {
	icon = privilege_lighten_dhimmi_tax_burden
	max_absolutism = -5
	influence = 0.05
	is_valid = {
		any_owned_province = {
			NOT = { religion_group = root }
		}
	}
	on_granted = {
		custom_tooltip = estate_dhimmi_lighter_dhimmi_taxes_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				NOT = { religion_group = root }
			}
			add_province_modifier = {
				name = estate_dhimmi_lighter_dhimmi_taxes_privilege_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_dhimmi_lighter_dhimmi_taxes_privilege_mod
			}
			remove_province_modifier = estate_dhimmi_lighter_dhimmi_taxes_privilege_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_dhimmi_lighter_dhimmi_taxes_revoke_effect_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_dhimmi_lighter_dhimmi_taxes_privilege_mod
			}
			remove_province_modifier = estate_dhimmi_lighter_dhimmi_taxes_privilege_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_dhimmi_lighter_dhimmi_taxes_revoke_effect_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_dhimmi_lighter_dhimmi_taxes_privilege_mod
			}
			remove_province_modifier = estate_dhimmi_lighter_dhimmi_taxes_privilege_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_dhimmi_dhimmi_nobles = {
	icon = privilege_promoto_dhimmi_nobles
	max_absolutism = -5
	loyalty = 0.1
	influence = 0.1
	penalties = {
		church_loyalty_modifier = -0.05
		nobles_loyalty_modifier = -0.05
	}
	benefits = {
		free_leader_pool = 1
	}
	ai_will_do = {
		factor = 0
	}
}

estate_dhimmi_manpower = {
	icon = privilege_demand_more_troops
	land_share = 5
	max_absolutism = -5
	loyalty = -0.05
	influence = 0.05
	is_valid = {
		any_owned_province = {
			NOT = { religion_group = root }
		}
	}
	can_select = {
	}
	on_granted = {
		custom_tooltip = estate_dhimmi_manpower_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				NOT = { religion_group = root }
			}
			add_province_modifier = {
				name = estate_dhimmi_manpower_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_dhimmi_manpower_mod
			}
			remove_province_modifier = estate_dhimmi_manpower_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_dhimmi_manpower_revoke_effect_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_dhimmi_manpower_mod
			}
			remove_province_modifier = estate_dhimmi_manpower_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_dhimmi_manpower_revoke_effect_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_dhimmi_manpower_mod
			}
			remove_province_modifier = estate_dhimmi_manpower_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_dhimmi_tolerance = {
	icon = privilege_promoto_dhimmi_nobles
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		any_owned_province = {
			NOT = { religion = root }
		}
		NOT = { has_estate_privilege = estate_burghers_enforced_interfaith_dialogue }
		NOT = { has_unlocked_estate_privilege = { estate_privilege = estate_dhimmi_guarantee_of_traditions } }
	}
	can_select = {
		NOT = { has_estate_privilege = estate_church_enforced_one_faith }
	}
	penalties = {
		church_loyalty_modifier = -0.05
	}
	benefits = {
		tolerance_heathen = 2
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			num_of_owned_provinces_with = {
				NOT = { religion_group = root }
				is_state_core = root
				value = 15
			}
		}
		modifier = {
			factor = 0.5
			estate_influence = {
				estate = estate_church
				influence = 75
			}
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
	}
}

estate_dhimmi_guaranteed_autonomy = {
	icon = privilege_grant_autonomy
	max_absolutism = -5
	loyalty = 0.2
	influence = 0.05
	is_valid = {
		any_owned_province = {
			NOT = { religion_group = root }
		}
		NOT = { has_unlocked_estate_privilege = { estate_privilege = estate_dhimmi_guarantee_of_traditions } }
	}
	on_granted = {
		custom_tooltip = estate_dhimmi_guaranteed_autonomy_effect_tooltip
		hidden_effect = {
			set_country_flag = dhimmi_tolerates_wrong_religion
		}
	}
	on_granted_province = {
		if = {
			limit = {
				NOT = { religion_group = root }
			}
			add_province_modifier = {
				name = estate_dhimmi_guaranteed_autonomy_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_dhimmi_guaranteed_autonomy_revoke_effect_tooltip
		hidden_effect = {
			clr_country_flag = dhimmi_tolerates_wrong_religion
		}
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_dhimmi_guaranteed_autonomy_revoke_effect_tooltip
		hidden_effect = {
			clr_country_flag = dhimmi_tolerates_wrong_religion
		}
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 1000
		modifier = {
			factor = 0
			NOT = {
				any_owned_province = {
					NOT = { religion_group = ROOT }
				}
			}
		}
	}
}

estate_nomadic_tribes_share_of_the_spoils = {
	icon = privilege_supply_arms
	max_absolutism = -5
	loyalty = 0.05
	penalties = {
		available_province_loot = -0.1
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nomadic_tribes_chieftains_autonomy = {
	icon = privilege_grant_autonomy
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_nomadic_tribes_guaranteed_leadgership_in_host = {
	icon = privilege_conscript_cossack_elite
	max_absolutism = -5
	influence = 0.05
	can_select = {
		army_tradition = 30
	}
	on_granted = {
		add_army_tradition = -15
	}
	penalties = {
	}
	benefits = {
		general_cost = -0.25
		army_tradition_decay = -0.005
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nomadic_tribes_tribal_host = {
	icon = privilege_raise_host
	max_absolutism = -5
	loyalty = -0.05
	influence = 0.1
	benefits = {
		global_manpower_modifier = 0.2
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
	}
}

estate_brahmins_brahmin_governance = {
	icon = privilege_admin_power
	land_share = 10
	max_absolutism = -5
	loyalty = -0.05
	is_valid = {
		NOT = { religion_group = muslim }
	}
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		country_admin_power = 1
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 30 }
				estate_influence = {
					estate = estate_church
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_brahmins_brahmin_governance }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 35 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 55 }
				}
			}
			NOT = { has_estate_privilege = estate_brahmins_brahmin_governance }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { adm = 2 }
		}
		modifier = {
			factor = 0.8
			adm = 5
		}
	}
}

estate_brahmins_legitimacy_to_rule = {
	icon = privilege_royal_authority
	max_absolutism = -5
	influence = 0.05
	is_valid = {
		religion_group = muslim
	}
	penalties = {
		church_loyalty_modifier = -0.05
	}
	benefits = {
		religious_unity = 0.25
		tolerance_heathen = 1
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 2
			NOT = {
				religious_unity = 0.5
			}
		}
		modifier = {
			factor = 10
			NOT = {
				religious_unity = 0.65
			}
		}
		modifier = {
			factor = 7.5
			NOT = { religious_unity = 1 }
			has_estate_privilege = estate_brahmins_legitimacy_to_rule
		}
		modifier = {
			factor = 0
			NOT = {
				any_owned_province = {
					NOT = { religion = root }
				}
			}
		}
		modifier = {
			factor = 0.75
			is_absolutism_active = yes
		}
	}
}

estate_brahmins_brahmin_leadership = {
	icon = privilege_seek_support_of_brahmins
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		NOT = { religion_group = muslim }
	}
	loyalty = 0.05
	penalties = {
		stability_cost_modifier = 0.1
	}
	benefits = {
		adm_advisor_cost = -0.25
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { adm = 2 }
		}
		modifier = {
			factor = 0.8
			adm = 5
		}
	}
}

estate_brahmins_flexible_deities = {
	icon = privilege_switch_hindu_deity
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		NOT = { religion_group = muslim }
		has_dlc = "Wealth of Nations"
	}
	can_select = {
		estate_influence = {
			estate = estate_brahmins
			influence = 60
		}
	}
	on_granted = {
		custom_tooltip = estate_brahmins_flexible_deities_effect_tooltip
	}
	on_revoked = {
		custom_tooltip = estate_brahmins_flexible_deities_revoke_tooltip
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_brahmins_loyalty_privilege = {
	icon = privilege_seek_support_of_clergy
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_brahmins_guaranteed_autonomy = {
	icon = privilege_grant_autonomy
	max_absolutism = -5
	loyalty = 0.05
	is_valid = {
		religion_group = muslim
		any_owned_province = {
			religion_group = dharmic
		}
	}
	on_granted = {
		custom_tooltip = estate_brahmins_guaranteed_autonomy_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				religion_group = dharmic
			}
			add_province_modifier = {
				name = estate_brahmins_guaranteed_autonomy_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_brahmins_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_brahmins_guaranteed_autonomy_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_brahmins_guaranteed_autonomy_revoke_effect_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_brahmins_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_brahmins_guaranteed_autonomy_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_brahmins_guaranteed_autonomy_revoke_effect_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_brahmins_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_brahmins_guaranteed_autonomy_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 1000
		modifier = {
			factor = 0
			NOT = {
				any_owned_province = {
					religion_group = dharmic
				}
			}
		}
	}
}

estate_jains_diplomacy = {
	icon = privilege_diplo_power
	land_share = 10
	max_absolutism = -5
	loyalty = -0.05
	is_valid = {
		NOT = { religion_group = muslim }
	}
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		country_diplomatic_power = 1
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 30 }
				estate_influence = {
					estate = estate_jains
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_jains_diplomacy }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 35 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 55 }
				}
			}
			NOT = { has_estate_privilege = estate_jains_diplomacy }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { dip = 2 }
		}
		modifier = {
			factor = 0.8
			dip = 5
		}
	}
}

estate_jains_clerical_class = {
	icon = privilege_patronize_jain_families
	loyalty = 0.1
	max_absolutism = -10
	influence = 0.1
	can_select = {
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		state_maintenance_modifier = -0.25
		development_cost = -0.05
	}
	ai_will_do = {
		factor = 0
	}
}

estate_jains_indebted_to_jains = {
	icon = privilege_loan_interaction
	max_absolutism = -5
	influence = 0.05
	on_granted = {
		custom_tooltip = estate_burghers_indebted_to_burghers_effect_tooltip
		add_mercantilism = -1
		tooltip = {
			add_inflation = 0.5
		}
		hidden_effect = {
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
			add_loan = {
				fixed_interest = 1
				duration = 60
				estate_loan = yes
			}
		}
	}
	penalties = {
		trade_efficiency = -0.05
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_jains_conscientious_objection = {
	icon = privilege_commission_jain_scripture
	max_absolutism = -5
	loyalty = 0.1
	penalties = {
		global_manpower_modifier = -0.1
	}
	benefits = {
		yearly_corruption = -0.1
	}
	ai_will_do = {
		factor = 0
	}
}

estate_maratha_military = {
	icon = privilege_military_power
	land_share = 10
	max_absolutism = -5
	loyalty = -0.05
	is_valid = {
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = no_other_mil_privilege
			NOT = { has_estate_privilege = estate_nobles_nobility_primacy }
		}
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		country_military_power = 1
	}
	ai_will_do = {
		factor = 12
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 30 }
				estate_influence = {
					estate = estate_maratha
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_maratha_military }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 35 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 55 }
				}
			}
			NOT = { has_estate_privilege = estate_maratha_military }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { mil = 2 }
		}
		modifier = {
			factor = 0.8
			mil = 5
		}
	}
}

estate_maratha_advisor = {
	icon = privilege_limited_war_support
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		NOT = { religion_group = muslim }
	}
	loyalty = 0.05
	penalties = {
		stability_cost_modifier = 0.1
	}
	benefits = {
		mil_advisor_cost = -0.25
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { mil = 2 }
		}
		modifier = {
			factor = 0.8
			mil = 5
		}
	}
}

estate_maratha_loyalty_privilege = {
	icon = privilege_royal_authority
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_maratha_levies = {
	icon = privilege_recruit_from_marathi
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		NOT = { religion_group = muslim }
	}
	modifier_by_land_ownership = {
		global_tax_modifier = -0.10
		global_manpower_modifier = 0.25
	}
	penalties = {
	}
	ai_will_do = {
		factor = 5
		modifier = {
			factor = 1.5
			any_rival_country = {
				army_strength = {
					who = root
					value = 1.5
				}
			}
		}
		modifier = {
			factor = 2
			has_idea_group = quantity_ideas
		}
		modifier = {
			factor = 1.5
			NOT = { max_manpower = 40 }
		}
		modifier = {
			factor = 0.5
			max_manpower = 200
		}
		modifier = {
			factor = 2
			estate_territory = {
				estate = estate_maratha
				territory = 50
			}
		}
		modifier = {
			factor = 1.5
			estate_territory = {
				estate = estate_maratha
				territory = 40
			}
		}
		modifier = {
			factor = 1.5
			estate_territory = {
				estate = estate_maratha
				territory = 30
			}
		}
		modifier = {
			factor = 0.5
			NOT = {
				estate_territory = {
					estate = estate_maratha
					territory = 15
				}
			}
		}
		modifier = {
			factor = 0.5
			NOT = {
				estate_territory = {
					estate = estate_maratha
					territory = 10
				}
			}
		}
		modifier = {
			factor = 0.5
			NOT = {
				estate_territory = {
					estate = estate_maratha
					territory = 5
				}
			}
		}
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
	}
}

estate_maratha_levies_for_muslims = {
	icon = privilege_recruit_from_marathi
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		religion_group = muslim
	}
	on_granted = {
		custom_tooltip = estate_maratha_levies_for_muslims_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				religion = hinduism
			}
			add_province_modifier = {
				name = estate_maratha_levies_for_muslims_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_maratha_levies_for_muslims_mod
			}
			remove_province_modifier = estate_maratha_levies_for_muslims_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_maratha_levies_for_muslims_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_maratha_levies_for_muslims_mod
			}
			remove_province_modifier = estate_maratha_levies_for_muslims_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_maratha_levies_for_muslims_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_maratha_levies_for_muslims_mod
			}
			remove_province_modifier = estate_maratha_levies_for_muslims_mod
		}
	}
	penalties = {
		nobles_loyalty_modifier = -0.05
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_maratha_special_privilege = {
	icon = privilege_promote_maratha_nobility
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	is_valid = {
		has_reform = permanent_marathas_council_reform
	}
	modifier_by_land_ownership = {
		discipline = 0.1
		global_tax_modifier = -0.15
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_rajput_rajput_regiments = {
	icon = privilege_spawn_rajput_regiments
	land_share = 5
	max_absolutism = -5
	influence = 0.05
	can_select = {
	}
	on_granted = {
	}
	modifier_by_land_ownership = {
		special_unit_forcelimit = 0.5
	}
	penalties = {
	}
	benefits = {

	}
	mechanics = {
		enables_rajput_regiments
	}
	ai_will_do = {
		factor = 10
	}
}

estate_rajput_military = {
	icon = privilege_military_power
	land_share = 10
	max_absolutism = -5
	loyalty = -0.05
	is_valid = {
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = no_other_mil_privilege
			NOT = { has_estate_privilege = estate_nobles_nobility_primacy }
		}
	}
	on_granted = {
	}
	penalties = {
	}
	benefits = {
		country_military_power = 1
	}
	ai_will_do = {
		factor = 12
		modifier = {
			factor = 0
			OR = {
				NOT = { crown_land_share = 30 }
				estate_influence = {
					estate = estate_rajput
					influence = 75
				}
			}
			NOT = { has_estate_privilege = estate_rajput_military }
		}
		modifier = {
			factor = 0.8
			OR = {
				NOT = { crown_land_share = 35 }
				AND = {
					is_absolutism_active = yes
					NOT = { crown_land_share = 55 }
				}
			}
			NOT = { has_estate_privilege = estate_rajput_military }
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { mil = 2 }
		}
		modifier = {
			factor = 0.8
			mil = 5
		}
	}
}

estate_rajput_advisor = {
	icon = privilege_recruit_minister
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		NOT = { religion_group = muslim }
	}
	loyalty = 0.05
	penalties = {
		stability_cost_modifier = 0.1
	}
	benefits = {
		mil_advisor_cost = -0.25
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { mil = 2 }
		}
		modifier = {
			factor = 0.8
			mil = 5
		}
	}
}

estate_rajput_loyalty_privilege = {
	icon = privilege_promote_rajput_nobility
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_rajput_officer_corp = {
	icon = privilege_recruit_rajput_general
	max_absolutism = -5
	influence = 0.05
	can_select = {
		army_tradition = 30
	}
	on_granted = {
		add_army_tradition = -15
	}
	penalties = {
	}
	benefits = {
		leader_land_fire = 1
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			NOT = { has_estate_privilege = estate_rajput_officer_corp }
			NOT = { army_tradition = 75 }
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_rajput_look_up_purbias = {
	icon = privilege_promote_purbias
	land_share = 5
	max_absolutism = -5
	influence = 0.05
	is_valid = {
		has_estate_privilege = estate_rajput_rajput_regiments
	}
	can_select = {
	}
	on_granted = {
		if = {
			limit = { has_reform = governmental_purbias_register_reform }
			add_country_modifier = {
				name = look_up_purbias_upgraded
				duration = -1
			}
		}
		else = {
			add_country_modifier = {
				name = look_up_purbias
				duration = -1
			}
		}
	}
	on_revoked = {
		if = {
			limit = {
				has_country_modifier = look_up_purbias_upgraded
			}
			remove_country_modifier = look_up_purbias_upgraded
		}
		else = {
			remove_country_modifier = look_up_purbias
		}
	}
	on_invalid = {
		if = {
			limit = {
				has_country_modifier = look_up_purbias_upgraded
			}
			remove_country_modifier = look_up_purbias_upgraded
		}
		else = {
			remove_country_modifier = look_up_purbias
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			OR = {
				estate_influence = {
					influence = 75
					estate = estate_rajput
				}
				NOT = { crown_land_share = 25 }
			}
			NOT = { has_estate_privilege = estate_rajput_look_up_purbias }
		}
	}
}

estate_vaisyas_loyalty_privilege = {
	icon = privilege_royal_authority
	max_absolutism = -10
	loyalty = 0.1
	influence = 0.1
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_vaisyas_advisor = {
	icon = privilege_recruit_minister
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.05
	penalties = {
		stability_cost_modifier = 0.1
	}
	benefits = {
		dip_advisor_cost = -0.25
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
		modifier = {
			factor = 1.25
			NOT = { dip = 2 }
		}
		modifier = {
			factor = 0.8
			dip = 5
		}
	}
}

estate_vaisyas_wartaxes = {
	icon = privilege_exempt_officers_from_jaziya
	max_absolutism = -5
	loyalty = -0.05
	benefits = {
		war_taxes_cost_modifier = -0.5
		war_exhaustion = -0.02
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			current_age = age_of_discovery
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_burghers_patronage_of_the_arts = {
	icon = privilege_build_jain_temple
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	penalties = {
		global_tax_modifier = -0.05
	}
	benefits = {
		prestige = 0.5
	}
	on_granted = {
		if = {
			limit = { prestige = 50 }
			add_prestige = 10
		}
		else_if = {
			limit = { prestige = 0 }
			add_prestige = 15
		}
		else_if = {
			limit = { prestige = -25 }
			add_prestige = 20
		}
		else_if = {
			limit = { prestige = -50 }
			add_prestige = 25
		}
		else = {
			add_prestige = 30
		}
	}
	ai_will_do = {
		factor = 0
	}
}

estate_vaisyas_patronage_of_the_arts = {
	icon = privilege_build_jain_temple
	max_absolutism = -5
	loyalty = 0.05
	influence = 0.05
	penalties = {
		global_tax_modifier = -0.05
	}
	benefits = {
		prestige = 0.5
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nomadic_tribes_primacy_to_the_bannermen = {
	icon = privilege_royal_authority
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		OR = {
			primary_culture = manchu
			primary_culture = manchu_new
		}
	}
	penalties = {
		amount_of_banners = -0.25
	}
	benefits = {
		land_morale = 0.1
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			OR = {
				tag = MCH
				tag = MJZ
			}
		}
	}
}

#DLC Privileges

estate_nobles_supremacy_over_crown = {
	icon = privilege_empty_throne
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
	}
	penalties = {
	}
	benefits = {
		burghers_loyalty_modifier = 0.1
		church_loyalty_modifier = 0.1
		dhimmi_loyalty_modifier = 0.1
		cossacks_loyalty_modifier = 0.1
		rajput_loyalty_modifier = 0.1
		brahmins_hindu_loyalty_modifier = 0.1
		brahmins_muslim_loyalty_modifier = 0.1
		brahmins_other_loyalty_modifier = 0.1
		maratha_loyalty_modifier = 0.1
		jains_loyalty_modifier = 0.1
		vaisyas_loyalty_modifier = 0.1
		nomadic_tribes_loyalty_modifier = 0.1
		burghers_influence_modifier = 0.1
		church_influence_modifier = 0.1
		dhimmi_influence_modifier = 0.1
		cossacks_influence_modifier = 0.1
		rajput_influence_modifier = 0.1
		brahmins_hindu_influence_modifier = 0.1
		brahmins_muslim_influence_modifier = 0.1
		brahmins_other_influence_modifier = 0.1
		maratha_influence_modifier = 0.1
		jains_influence_modifier = 0.1
		vaisyas_influence_modifier = 0.1
		nomadic_tribes_influence_modifier = 0.1
	}
	mechanics = {
		can_give_agendas_without_interaction
	}
	ai_will_do = {
		factor = 0
	}
}

estate_brahmins_supremacy_over_crown = {
	icon = privilege_royal_authority
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		NOT = { has_estate = estate_nobles }
	}
	penalties = {
	}
	benefits = {
		burghers_loyalty_modifier = 0.1
		church_loyalty_modifier = 0.1
		dhimmi_loyalty_modifier = 0.1
		cossacks_loyalty_modifier = 0.1
		rajput_loyalty_modifier = 0.1
		nobles_loyalty_modifier = 0.1
		maratha_loyalty_modifier = 0.1
		jains_loyalty_modifier = 0.1
		vaisyas_loyalty_modifier = 0.1
		nomadic_tribes_loyalty_modifier = 0.1
		burghers_influence_modifier = 0.1
		church_influence_modifier = 0.1
		dhimmi_influence_modifier = 0.1
		cossacks_influence_modifier = 0.1
		rajput_influence_modifier = 0.1
		nobles_influence_modifier = 0.1
		maratha_influence_modifier = 0.1
		jains_influence_modifier = 0.1
		vaisyas_influence_modifier = 0.1
		nomadic_tribes_influence_modifier = 0.1
	}
	mechanics = {
		can_give_agendas_without_interaction
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_monopoly_of_textiles = {
	icon = privilege_monopoly_of_goods_cloth
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			OR = {
				trade_goods = cloth
				trade_goods = silk
			}
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				OR = {
					trade_goods = cloth
					trade_goods = silk
				}
			}
			custom_tooltip = MONOPOLY_INCOME_CLOTH_DESC
		}
		custom_tooltip = estate_burghers_monopoly_of_textiles_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				OR = {
					trade_goods = cloth
					trade_goods = silk
				}
			}
			add_province_modifier = {
				name = estate_burghers_monopoly_of_textiles_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_textiles_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_textiles_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_monopoly_of_textiles_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_textiles_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_textiles_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_monopoly_of_textiles_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_textiles_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_textiles_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.1 }
	}
	ai_will_do = { #having the AI use these could lead to an unstoppable downwards spiral if it can't work out how to get rid of them
		factor = 0
	}
}

estate_burghers_monopoly_of_dyes = {
	icon = privilege_monopoly_of_goods_dyes
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = dyes
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = dyes
			}
			custom_tooltip = MONOPOLY_INCOME_DYE_DESC
		}
		custom_tooltip = estate_burghers_monopoly_of_dyes_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = dyes
			}
			add_province_modifier = {
				name = estate_burghers_monopoly_of_dyes_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_dyes_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_dyes_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_monopoly_of_dyes_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_dyes_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_dyes_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_monopoly_of_dyes_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_dyes_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_dyes_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.2 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_monopoly_of_glass = {
	icon = privilege_monopoly_of_goods_glass
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = glass
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = glass
			}
			custom_tooltip = MONOPOLY_INCOME_GLASS_DESC
		}
		custom_tooltip = estate_burghers_monopoly_of_glass_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = glass
			}
			add_province_modifier = {
				name = estate_burghers_monopoly_of_glass_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_glass_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_glass_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_monopoly_of_glass_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_glass_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_glass_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_monopoly_of_glass_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_glass_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_glass_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.3 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_monopoly_of_paper = {
	icon = privilege_monopoly_of_goods_paper
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = paper
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = paper
			}
			custom_tooltip = MONOPOLY_INCOME_PAPER_DESC
		}
		custom_tooltip = estate_burghers_monopoly_of_paper_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = paper
			}
			add_province_modifier = {
				name = estate_burghers_monopoly_of_paper_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_paper_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_paper_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_monopoly_of_paper_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_paper_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_paper_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_monopoly_of_paper_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_monopoly_of_paper_mod
			}
			remove_province_modifier = estate_burghers_monopoly_of_paper_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.4 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_vaisyas_monopoly_of_textiles = {
	icon = privilege_monopoly_of_goods_cloth
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			OR = {
				trade_goods = cloth
				trade_goods = silk
			}
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				OR = {
					trade_goods = cloth
					trade_goods = silk
				}
			}
			custom_tooltip = MONOPOLY_INCOME_CLOTH_DESC
		}
		custom_tooltip = estate_vaisyas_monopoly_of_textiles_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				OR = {
					trade_goods = cloth
					trade_goods = silk
				}
			}
			add_province_modifier = {
				name = estate_vaisyas_monopoly_of_textiles_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_textiles_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_textiles_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_vaisyas_monopoly_of_textiles_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_textiles_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_textiles_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_vaisyas_monopoly_of_textiles_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_textiles_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_textiles_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.1 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_vaisyas_monopoly_of_dyes = {
	icon = privilege_monopoly_of_goods_dyes
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = dyes
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = dyes
			}
			custom_tooltip = MONOPOLY_INCOME_DYE_DESC
		}
		custom_tooltip = estate_vaisyas_monopoly_of_dyes_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = dyes
			}
			add_province_modifier = {
				name = estate_vaisyas_monopoly_of_dyes_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_dyes_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_dyes_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_vaisyas_monopoly_of_dyes_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_dyes_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_dyes_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_vaisyas_monopoly_of_dyes_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_dyes_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_dyes_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.2 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_vaisyas_monopoly_of_glass = {
	icon = privilege_monopoly_of_goods_glass
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = glass
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = glass
			}
			custom_tooltip = MONOPOLY_INCOME_GLASS_DESC
		}
		custom_tooltip = estate_vaisyas_monopoly_of_glass_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = glass
			}
			add_province_modifier = {
				name = estate_vaisyas_monopoly_of_glass_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_glass_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_glass_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_vaisyas_monopoly_of_glass_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_glass_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_glass_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_vaisyas_monopoly_of_glass_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_glass_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_glass_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.3 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_vaisyas_monopoly_of_paper = {
	icon = privilege_monopoly_of_goods_paper
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = paper
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = paper
			}
			custom_tooltip = MONOPOLY_INCOME_PAPER_DESC
		}
		custom_tooltip = estate_vaisyas_monopoly_of_paper_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = paper
			}
			add_province_modifier = {
				name = estate_vaisyas_monopoly_of_paper_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_paper_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_paper_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_vaisyas_monopoly_of_paper_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_paper_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_paper_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_vaisyas_monopoly_of_paper_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_vaisyas_monopoly_of_paper_mod
			}
			remove_province_modifier = estate_vaisyas_monopoly_of_paper_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.4 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_jains_monopoly_of_textiles = {
	icon = privilege_monopoly_of_goods_cloth
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			OR = {
				trade_goods = cloth
				trade_goods = silk
			}
		}
		NOT = { has_estate = estate_vaisyas }
		NOT = { has_estate = estate_burghers }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				OR = {
					trade_goods = cloth
					trade_goods = silk
				}
			}
			custom_tooltip = MONOPOLY_INCOME_CLOTH_DESC
		}
		custom_tooltip = estate_jains_monopoly_of_textiles_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				OR = {
					trade_goods = cloth
					trade_goods = silk
				}
			}
			add_province_modifier = {
				name = estate_jains_monopoly_of_textiles_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_textiles_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_textiles_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_jains_monopoly_of_textiles_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_textiles_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_textiles_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_jains_monopoly_of_textiles_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_textiles_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_textiles_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.1 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_jains_monopoly_of_dyes = {
	icon = privilege_monopoly_of_goods_dyes
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = dyes
		}
		NOT = { has_estate = estate_vaisyas }
		NOT = { has_estate = estate_burghers }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = dyes
			}
			custom_tooltip = MONOPOLY_INCOME_DYE_DESC
		}
		custom_tooltip = estate_jains_monopoly_of_dyes_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = dyes
			}
			add_province_modifier = {
				name = estate_jains_monopoly_of_dyes_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_dyes_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_dyes_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_jains_monopoly_of_dyes_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_dyes_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_dyes_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_jains_monopoly_of_dyes_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_dyes_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_dyes_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.2 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_jains_monopoly_of_glass = {
	icon = privilege_monopoly_of_goods_glass
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = glass
		}
		NOT = { has_estate = estate_vaisyas }
		NOT = { has_estate = estate_burghers }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = glass
			}
			custom_tooltip = MONOPOLY_INCOME_GLASS_DESC
		}
		custom_tooltip = estate_jains_monopoly_of_glass_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = glass
			}
			add_province_modifier = {
				name = estate_jains_monopoly_of_glass_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_glass_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_glass_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_jains_monopoly_of_glass_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_glass_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_glass_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_jains_monopoly_of_glass_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_glass_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_glass_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.3 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_jains_monopoly_of_paper = {
	icon = privilege_monopoly_of_goods_paper
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = paper
		}
		NOT = { has_estate = estate_vaisyas }
		NOT = { has_estate = estate_burghers }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = paper
			}
			custom_tooltip = MONOPOLY_INCOME_PAPER_DESC
		}
		custom_tooltip = estate_jains_monopoly_of_paper_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = paper
			}
			add_province_modifier = {
				name = estate_jains_monopoly_of_paper_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_paper_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_paper_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_jains_monopoly_of_paper_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_paper_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_paper_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_jains_monopoly_of_paper_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_jains_monopoly_of_paper_mod
			}
			remove_province_modifier = estate_jains_monopoly_of_paper_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.4 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nobles_monopoly_of_metals = {
	icon = privilege_monopoly_of_goods_iron
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			OR = {
				trade_goods = iron
				trade_goods = copper
			}
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				OR = {
					trade_goods = iron
					trade_goods = copper
				}
			}
			custom_tooltip = MONOPOLY_INCOME_IRON_DESC
		}
		custom_tooltip = estate_nobles_monopoly_of_metals_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				OR = {
					trade_goods = iron
					trade_goods = copper
				}
			}
			add_province_modifier = {
				name = estate_nobles_monopoly_of_metals_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_nobles_monopoly_of_metals_mod
			}
			remove_province_modifier = estate_nobles_monopoly_of_metals_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_nobles_monopoly_of_metals_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_nobles_monopoly_of_metals_mod
			}
			remove_province_modifier = estate_nobles_monopoly_of_metals_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_nobles_monopoly_of_metals_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_nobles_monopoly_of_metals_mod
			}
			remove_province_modifier = estate_nobles_monopoly_of_metals_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.5 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nobles_monopoly_of_livestock = {
	icon = privilege_monopoly_of_goods_livestock
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = livestock
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = livestock
			}
			custom_tooltip = MONOPOLY_INCOME_LIVESTOCK_DESC
		}
		custom_tooltip = estate_nobles_monopoly_of_livestock_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = livestock
			}
			add_province_modifier = {
				name = estate_nobles_monopoly_of_livestock_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_nobles_monopoly_of_livestock_mod
			}
			remove_province_modifier = estate_nobles_monopoly_of_livestock_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_nobles_monopoly_of_livestock_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_nobles_monopoly_of_livestock_mod
			}
			remove_province_modifier = estate_nobles_monopoly_of_livestock_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_nobles_monopoly_of_livestock_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_nobles_monopoly_of_livestock_mod
			}
			remove_province_modifier = estate_nobles_monopoly_of_livestock_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.6 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nobles_monopoly_of_gems = {
	icon = privilege_monopoly_of_goods_gems
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = gems
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = gems
			}
			custom_tooltip = MONOPOLY_INCOME_GEMS_DESC
		}
		custom_tooltip = estate_nobles_monopoly_of_gems_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = gems
			}
			add_province_modifier = {
				name = estate_nobles_monopoly_of_gems_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_nobles_monopoly_of_gems_mod
			}
			remove_province_modifier = estate_nobles_monopoly_of_gems_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_nobles_monopoly_of_gems_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_nobles_monopoly_of_gems_mod
			}
			remove_province_modifier = estate_nobles_monopoly_of_gems_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_nobles_monopoly_of_gems_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_nobles_monopoly_of_gems_mod
			}
			remove_province_modifier = estate_nobles_monopoly_of_gems_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.7 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_rajput_monopoly_of_metals = {
	icon = privilege_monopoly_of_goods_iron
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			OR = {
				trade_goods = iron
				trade_goods = copper
			}
		}
		NOT = { has_estate = estate_nobles }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				OR = {
					trade_goods = iron
					trade_goods = copper
				}
			}
			custom_tooltip = MONOPOLY_INCOME_IRON_DESC
		}
		custom_tooltip = estate_rajput_monopoly_of_metals_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				OR = {
					trade_goods = iron
					trade_goods = copper
				}
			}
			add_province_modifier = {
				name = estate_rajput_monopoly_of_metals_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_rajput_monopoly_of_metals_mod
			}
			remove_province_modifier = estate_rajput_monopoly_of_metals_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_rajput_monopoly_of_metals_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_rajput_monopoly_of_metals_mod
			}
			remove_province_modifier = estate_rajput_monopoly_of_metals_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_rajput_monopoly_of_metals_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_rajput_monopoly_of_metals_mod
			}
			remove_province_modifier = estate_rajput_monopoly_of_metals_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.5 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_rajput_monopoly_of_livestock = {
	icon = privilege_monopoly_of_goods_livestock
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = livestock
		}
		NOT = { has_estate = estate_nobles }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = livestock
			}
			custom_tooltip = MONOPOLY_INCOME_LIVESTOCK_DESC
		}
		custom_tooltip = estate_rajput_monopoly_of_livestock_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = livestock
			}
			add_province_modifier = {
				name = estate_rajput_monopoly_of_livestock_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_rajput_monopoly_of_livestock_mod
			}
			remove_province_modifier = estate_rajput_monopoly_of_livestock_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_rajput_monopoly_of_livestock_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_rajput_monopoly_of_livestock_mod
			}
			remove_province_modifier = estate_rajput_monopoly_of_livestock_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_rajput_monopoly_of_livestock_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_rajput_monopoly_of_livestock_mod
			}
			remove_province_modifier = estate_rajput_monopoly_of_livestock_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.6 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_rajput_monopoly_of_gems = {
	icon = privilege_monopoly_of_goods_gems
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = gems
		}
		NOT = { has_estate = estate_nobles }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = gems
			}
			custom_tooltip = MONOPOLY_INCOME_GEMS_DESC
		}
		custom_tooltip = estate_rajput_monopoly_of_gems_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = gems
			}
			add_province_modifier = {
				name = estate_rajput_monopoly_of_gems_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_rajput_monopoly_of_gems_mod
			}
			remove_province_modifier = estate_rajput_monopoly_of_gems_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_rajput_monopoly_of_gems_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_rajput_monopoly_of_gems_mod
			}
			remove_province_modifier = estate_rajput_monopoly_of_gems_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_rajput_monopoly_of_gems_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_rajput_monopoly_of_gems_mod
			}
			remove_province_modifier = estate_rajput_monopoly_of_gems_mod
		}
	}
	penalties = {
	}
	benefits = {
	}

	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.7 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_maratha_monopoly_of_metals = {
	icon = privilege_monopoly_of_goods_iron
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			OR = {
				trade_goods = iron
				trade_goods = copper
			}
		}
		NOT = { has_estate = estate_nobles }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				OR = {
					trade_goods = iron
					trade_goods = copper
				}
			}
			custom_tooltip = MONOPOLY_INCOME_IRON_DESC
		}
		custom_tooltip = estate_maratha_monopoly_of_metals_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				OR = {
					trade_goods = iron
					trade_goods = copper
				}
			}
			add_province_modifier = {
				name = estate_maratha_monopoly_of_metals_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_maratha_monopoly_of_metals_mod
			}
			remove_province_modifier = estate_maratha_monopoly_of_metals_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_maratha_monopoly_of_metals_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_maratha_monopoly_of_metals_mod
			}
			remove_province_modifier = estate_maratha_monopoly_of_metals_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_maratha_monopoly_of_metals_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_maratha_monopoly_of_metals_mod
			}
			remove_province_modifier = estate_maratha_monopoly_of_metals_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.5 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_maratha_monopoly_of_livestock = {
	icon = privilege_monopoly_of_goods_livestock
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = livestock
		}
		NOT = { has_estate = estate_nobles }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = livestock
			}
			custom_tooltip = MONOPOLY_INCOME_LIVESTOCK_DESC
		}
		custom_tooltip = estate_maratha_monopoly_of_livestock_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = livestock
			}
			add_province_modifier = {
				name = estate_maratha_monopoly_of_livestock_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_maratha_monopoly_of_livestock_mod
			}
			remove_province_modifier = estate_maratha_monopoly_of_livestock_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_maratha_monopoly_of_livestock_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_maratha_monopoly_of_livestock_mod
			}
			remove_province_modifier = estate_maratha_monopoly_of_livestock_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_maratha_monopoly_of_livestock_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_maratha_monopoly_of_livestock_mod
			}
			remove_province_modifier = estate_maratha_monopoly_of_livestock_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.6 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_maratha_monopoly_of_gems = {
	icon = privilege_monopoly_of_goods_gems
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = gems
		}
		NOT = { has_estate = estate_nobles }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = gems
			}
			custom_tooltip = MONOPOLY_INCOME_GEMS_DESC
		}
		custom_tooltip = estate_maratha_monopoly_of_gems_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = gems
			}
			add_province_modifier = {
				name = estate_maratha_monopoly_of_gems_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_maratha_monopoly_of_gems_mod
			}
			remove_province_modifier = estate_maratha_monopoly_of_gems_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_maratha_monopoly_of_gems_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_maratha_monopoly_of_gems_mod
			}
			remove_province_modifier = estate_maratha_monopoly_of_gems_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_maratha_monopoly_of_gems_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_maratha_monopoly_of_gems_mod
			}
			remove_province_modifier = estate_maratha_monopoly_of_gems_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.7 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_church_monopoly_of_incense = {
	icon = privilege_monopoly_of_goods_incence
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = incense
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = incense
			}
			custom_tooltip = MONOPOLY_INCOME_INCENSE_DESC
		}
		custom_tooltip = estate_church_monopoly_of_incense_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = incense
			}
			add_province_modifier = {
				name = estate_church_monopoly_of_incense_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_incense_mod
			}
			remove_province_modifier = estate_church_monopoly_of_incense_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_church_monopoly_of_incense_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_incense_mod
			}
			remove_province_modifier = estate_church_monopoly_of_incense_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_church_monopoly_of_incense_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_incense_mod
			}
			remove_province_modifier = estate_church_monopoly_of_incense_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.8 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_church_monopoly_of_wool = {
	icon = privilege_monopoly_of_goods_wool
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = wool
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = wool
			}
			custom_tooltip = MONOPOLY_INCOME_WOOL_DESC
		}
		custom_tooltip = estate_church_monopoly_of_wool_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = wool
			}
			add_province_modifier = {
				name = estate_church_monopoly_of_wool_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_wool_mod
			}
			remove_province_modifier = estate_church_monopoly_of_wool_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_church_monopoly_of_wool_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_wool_mod
			}
			remove_province_modifier = estate_church_monopoly_of_wool_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_church_monopoly_of_wool_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_wool_mod
			}
			remove_province_modifier = estate_church_monopoly_of_wool_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.9 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_church_monopoly_of_wine = {
	icon = privilege_monopoly_of_goods_wine
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		NOT = { religion_group = muslim }
		any_owned_province = {
			trade_goods = wine
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = wine
			}
			custom_tooltip = MONOPOLY_INCOME_WINE_DESC
		}
		custom_tooltip = estate_church_monopoly_of_wine_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = wine
			}
			add_province_modifier = {
				name = estate_church_monopoly_of_wine_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_wine_mod
			}
			remove_province_modifier = estate_church_monopoly_of_wine_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_church_monopoly_of_wine_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_wine_mod
			}
			remove_province_modifier = estate_church_monopoly_of_wine_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_church_monopoly_of_wine_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_wine_mod
			}
			remove_province_modifier = estate_church_monopoly_of_wine_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.10 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_church_monopoly_of_slaves = {
	icon = privilege_monopoly_of_goods_slaves
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		religion = nahuatl
		any_owned_province = {
			trade_goods = slaves
		}
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = slaves
			}
			custom_tooltip = MONOPOLY_INCOME_SLAVES_DESC
		}
		custom_tooltip = estate_church_monopoly_of_slaves_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = slaves
			}
			add_province_modifier = {
				name = estate_church_monopoly_of_slaves_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_slaves_mod
			}
			remove_province_modifier = estate_church_monopoly_of_slaves_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_church_monopoly_of_slaves_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_slaves_mod
			}
			remove_province_modifier = estate_church_monopoly_of_slaves_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_church_monopoly_of_slaves_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_monopoly_of_slaves_mod
			}
			remove_province_modifier = estate_church_monopoly_of_slaves_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.11 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_brahmins_monopoly_of_incense = {
	icon = privilege_monopoly_of_goods_incence
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = incense
		}
		NOT = { has_estate = estate_church }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = incense
			}
			custom_tooltip = MONOPOLY_INCOME_INCENSE_DESC
		}
		custom_tooltip = estate_brahmins_monopoly_of_incense_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = incense
			}
			add_province_modifier = {
				name = estate_brahmins_monopoly_of_incense_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_brahmins_monopoly_of_incense_mod
			}
			remove_province_modifier = estate_brahmins_monopoly_of_incense_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_brahmins_monopoly_of_incense_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_brahmins_monopoly_of_incense_mod
			}
			remove_province_modifier = estate_brahmins_monopoly_of_incense_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_brahmins_monopoly_of_incense_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_brahmins_monopoly_of_incense_mod
			}
			remove_province_modifier = estate_brahmins_monopoly_of_incense_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.8 }
	}
	ai_will_do = {
		factor = 0
	}
}

estate_brahmins_monopoly_of_wool = {
	icon = privilege_monopoly_of_goods_wool
	max_absolutism = -10
	loyalty = 0.1
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			trade_goods = wool
		}
		NOT = { has_estate = estate_church }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = unavailable_during_revolution_disaster
			NOT = { has_disaster = revolution }
			NOT = {
				has_disaster_progress = {
					disaster = revolution
					value = 1
				}
			}
			NOT = { has_disaster = french_revolution }
			NOT = {
				has_disaster_progress = {
					disaster = french_revolution
					value = 1
				}
			}
		}
	}
	on_granted = {
		add_mercantilism = 1
		add_years_of_owned_provinces_production_income = {
			years = 8
			trigger = {
				trade_goods = wool
			}
			custom_tooltip = MONOPOLY_INCOME_WOOL_DESC
		}
		custom_tooltip = estate_brahmins_monopoly_of_wool_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = wool
			}
			add_province_modifier = {
				name = estate_brahmins_monopoly_of_wool_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_brahmins_monopoly_of_wool_mod
			}
			remove_province_modifier = estate_brahmins_monopoly_of_wool_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_brahmins_monopoly_of_wool_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_brahmins_monopoly_of_wool_mod
			}
			remove_province_modifier = estate_brahmins_monopoly_of_wool_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_brahmins_monopoly_of_wool_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_brahmins_monopoly_of_wool_mod
			}
			remove_province_modifier = estate_brahmins_monopoly_of_wool_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 10
	on_cooldown_expires = {
		country_event = { id = monopoly_privileges.9 }
	}
	ai_will_do = {
		factor = 0
	}
}



estate_cossacks_recruit_cossack_generals = {
	icon = privilege_conscript_cossack_elite
	max_absolutism = -5
	influence = 0.1
	penalties = {
	}
	benefits = {
		army_tradition = 0.5
		leader_land_shock = 1
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_cossacks_prime_herding_rights = {
	icon = privilege_monopoly_of_goods_livestock
	max_absolutism = -5
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			has_terrain = steppe
		}
	}
	on_granted = {
		custom_tooltip = estate_cossacks_prime_herding_rights_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				has_terrain = steppe
			}
			add_province_modifier = {
				name = estate_cossacks_prime_herding_rights_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_cossacks_prime_herding_rights_mod
			}
			remove_province_modifier = estate_cossacks_prime_herding_rights_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_cossacks_prime_herding_rights_mod_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_cossacks_prime_herding_rights_mod
			}
			remove_province_modifier = estate_cossacks_prime_herding_rights_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_cossacks_prime_herding_rights_mod_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_cossacks_prime_herding_rights_mod
			}
			remove_province_modifier = estate_cossacks_prime_herding_rights_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nobles_junker_primacy = {
	icon = privilege_royal_authority
	max_absolutism = -5
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
		OR = {
			has_reform = prussian_monarchy
			has_reform = prussian_republic_reform
		}
	}
	penalties = {
		all_power_cost = 0.05
	}
	benefits = {
		monthly_militarized_society = 0.02
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			has_dlc = "Rights of Man"
		}
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
	}
}


estate_nobles_strong_duchies = {
	icon = privilege_royal_authority
	max_absolutism = -10
	influence = 0.1
	loyalty = 0.05
	is_valid = {
		OR = {
			any_subject_country = {
				is_march = yes
			}
			vassal = 1
		}
		NOT = { has_estate_privilege = estate_nobles_french_strong_duchies }
		NOT = {
			AND = {
				tag = FRA
				NOT = { has_estate_privilege = estate_nobles_strong_duchies }
			}
		}
	}
	can_select = {
		if = {
			limit = {
				has_dlc = "Art of War"
			}
			custom_trigger_tooltip = {
				tooltip = estate_nobles_strong_duchies_trigger_tooltip
				calc_true_if = {
					amount = 2
					all_subject_country = {
						OR = {
							is_march = yes
							is_vassal = yes
						}
					}
				}
			}
		}
		else = {
			vassal = 2
		}
	}
	penalties = {
	}
	benefits = {
		diplomatic_upkeep = 2
		reduced_liberty_desire = 10
	}
	ai_will_do = {
		factor = 1
		modifier = { #will lose it via invalid sooner or later
			factor = 10
			has_estate_privilege = estate_nobles_strong_duchies
		}
	}
}

estate_nobles_golden_liberty = {
	icon = privilege_golden_liberty
	max_absolutism = -15
	influence = 0.1
	loyalty = 0.05
	is_valid = {
		OR = {
			has_estate_privilege = estate_nobles_golden_liberty #Poland starts with it
			has_reform = elective_monarchy
		}
		government = monarchy
	}
	can_revoke = {
		if = {
			limit = {
				OR = {
					tag = PLC
					AND = {
						tag = POL
						NOT = { exists = PLC }
					}
				}
			}
			OR = {
				NOT = { has_reform = elective_monarchy }
				is_year = 1600
			}
		}
		stability = 2
		has_regency = no
	}
	on_revoked = {
		if = {
			limit = {
				government = monarchy
				has_estate = estate_nobles
			}
			add_stability = -2
		}
		if = {
			limit = {
				OR = {
					tag = PLC
					AND = {
						tag = POL
						NOT = { exists = PLC }
					}
				}
			}
			if = {
				limit = {
					has_estate_privilege = estate_nobles_nieszawa_privileges
				}
				remove_estate_privilege = estate_nobles_nieszawa_privileges
			}
			if = {
				limit = {
					has_estate_privilege = estate_nobles_pacta_conventa
				}
				remove_estate_privilege = estate_nobles_pacta_conventa
			}
			if = {
				limit = {
					NOT = { has_country_flag = pol_zebrzydowski_rebellion_flag }
					is_year = 1600
					government = monarchy
				}
				set_country_flag = pol_pact_conventa_flag
			}
		}
		else_if = {
			limit = {
				has_reform = elective_monarchy
				has_estate = estate_nobles
			}
			country_event = { id = estate_privileges_and_agendas_events.1 }
		}
	}
	penalties = {
	}
	benefits = {
		global_manpower_modifier = 0.33
	}
	mechanics = {
		exempt_from_seize_land
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nobles_nieszawa_privileges = {
	icon = privilege_royal_authority
	max_absolutism = -5
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_estate_privilege = estate_nobles_nieszawa_privileges #event privilege for Poland
	}
	can_revoke = {
		custom_trigger_tooltip = { #revoke Golden Liberty or do it via event
			tooltip = estate_privilege_cannot_be_revoked
			always = no
		}
	}
	penalties = {
		technology_cost = 0.05
	}
	benefits = {
		stability_cost_modifier = -0.2
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nobles_pacta_conventa = {
	icon = privilege_royal_authority
	max_absolutism = -5
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_estate_privilege = estate_nobles_pacta_conventa #event privilege for Poland
	}
	can_revoke = {
		custom_trigger_tooltip = { #revoke Golden Liberty or do it via event
			tooltip = estate_privilege_cannot_be_revoked
			always = no
		}
	}
	penalties = {
		war_exhaustion_cost = 0.5
		inflation_action_cost = 0.5
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nobles_veto_heir_apparent = {
	icon = privilege_royal_authority
	max_absolutism = -5
	loyalty = -0.05
	is_valid = {
		has_dlc = "Emperor"
		has_reform = elective_monarchy
	}
	penalties = {
	}
	benefits = {
		monthly_support_heir_gain = 0.33
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_the_great_privilege = {
	icon = privilege_grant_autonomy
	max_absolutism = -10
	is_valid = {
		has_dlc = "Emperor"
		has_estate_privilege = estate_burghers_the_great_privilege
	}
	on_granted = {
		every_country = {
			limit = {
				capital_scope = {
					region = low_countries_region
				}
				junior_union_with = root
			}
			ROOT = { inherit = prev }
		}
		add_years_of_income = 2
		custom_tooltip = estate_burghers_the_great_privilege_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = { region = low_countries_region }
			add_province_modifier = {
				name = estate_burghers_the_great_privilege_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_burghers_the_great_privilege_mod
			}
			remove_province_modifier = estate_burghers_the_great_privilege_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_the_great_privilege_revoke_effect_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_the_great_privilege_mod
			}
			remove_province_modifier = estate_burghers_the_great_privilege_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_the_great_privilege_revoke_effect_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_the_great_privilege_mod
			}
			remove_province_modifier = estate_burghers_the_great_privilege_mod
		}
	}
	penalties = {
	}
	cooldown_years = 20
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_exclusive_trade_rights = {
	icon = privilege_make_generous_donation
	max_absolutism = -5
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
		any_active_trade_node = {
			calc_true_if = {
				amount = 3
				all_trade_node_member_province = {
					owned_by = root
					province_has_center_of_trade_of_level = 1
				}
			}
		}
	}
	on_granted = {
		random_active_trade_node = {
			limit = {
				calc_true_if = {
					amount = 3
					all_trade_node_member_province = {
						owned_by = root
						province_has_center_of_trade_of_level = 1
					}
				}
			}
			custom_tooltip = estate_burghers_exclusive_trade_rights_enact_tooltip
			hidden_effect = {
				every_trade_node_member_province = {
					limit = {
						owned_by = root
						province_has_center_of_trade_of_level = 1
					}
					add_province_modifier = {
						name = estate_burghers_exclusive_trade_rights_mod
						duration = -1
					}
				}
			}
		}
		add_mercantilism = 3
	}
	on_revoked = {
		custom_tooltip = estate_burghers_exclusive_trade_rights_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_exclusive_trade_rights_mod
			}
			remove_province_modifier = estate_burghers_exclusive_trade_rights_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_exclusive_trade_rights_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_exclusive_trade_rights_mod
			}
			remove_province_modifier = estate_burghers_exclusive_trade_rights_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_vaisyas_exclusive_trade_rights = {
	icon = privilege_make_generous_donation
	max_absolutism = -5
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
		any_active_trade_node = {
			calc_true_if = {
				amount = 3
				all_trade_node_member_province = {
					owned_by = root
					province_has_center_of_trade_of_level = 1
				}
			}
		}
	}
	on_granted = {
		random_active_trade_node = {
			limit = {
				calc_true_if = {
					amount = 3
					all_trade_node_member_province = {
						owned_by = root
						province_has_center_of_trade_of_level = 1
					}
				}
			}
			custom_tooltip = estate_burghers_exclusive_trade_rights_enact_tooltip
			hidden_effect = {
				every_trade_node_member_province = {
					limit = {
						owned_by = root
						province_has_center_of_trade_of_level = 1
					}
					add_province_modifier = {
						name = estate_burghers_exclusive_trade_rights_mod
						duration = -1
					}
				}
			}
		}
		add_mercantilism = 3
	}
	on_revoked = {
		custom_tooltip = estate_burghers_exclusive_trade_rights_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_exclusive_trade_rights_mod
			}
			remove_province_modifier = estate_burghers_exclusive_trade_rights_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_exclusive_trade_rights_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_exclusive_trade_rights_mod
			}
			remove_province_modifier = estate_burghers_exclusive_trade_rights_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_jains_exclusive_trade_rights = {
	icon = privilege_make_generous_donation
	max_absolutism = -5
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
		any_active_trade_node = {
			calc_true_if = {
				amount = 3
				all_trade_node_member_province = {
					owned_by = root
					province_has_center_of_trade_of_level = 1
				}
			}
		}
		NOT = { has_estate = estate_vaisyas }
	}
	on_granted = {
		random_active_trade_node = {
			limit = {
				calc_true_if = {
					amount = 3
					all_trade_node_member_province = {
						owned_by = root
						province_has_center_of_trade_of_level = 1
					}
				}
			}
			custom_tooltip = estate_burghers_exclusive_trade_rights_enact_tooltip
			hidden_effect = {
				every_trade_node_member_province = {
					limit = {
						owned_by = root
						province_has_center_of_trade_of_level = 1
					}
					add_province_modifier = {
						name = estate_burghers_exclusive_trade_rights_mod
						duration = -1
					}
				}
			}
		}
		add_mercantilism = 3
	}
	on_revoked = {
		custom_tooltip = estate_burghers_exclusive_trade_rights_revoke_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_exclusive_trade_rights_mod
			}
			remove_province_modifier = estate_burghers_exclusive_trade_rights_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_exclusive_trade_rights_revoke_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_exclusive_trade_rights_mod
			}
			remove_province_modifier = estate_burghers_exclusive_trade_rights_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_control_over_monetary_policy = {
	icon = privilege_give_money
	max_absolutism = -10
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
	}
	penalties = {
		all_power_cost = 0.05
	}
	benefits = {
		inflation_reduction = 0.15
		interest = -0.5
		production_efficiency = 0.05
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			OR = {
				inflation = 15
				num_of_loans = 15
			}
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_vaisyas_control_over_monetary_policy = {
	icon = privilege_give_money
	max_absolutism = -10
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
	}
	penalties = {
		all_power_cost = 0.05
	}
	benefits = {
		inflation_reduction = 0.15
		interest = -0.5
		production_efficiency = 0.05
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			OR = {
				inflation = 15
				num_of_loans = 15
			}
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_jains_control_over_monetary_policy = {
	icon = privilege_give_money
	max_absolutism = -10
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
		NOT = { has_estate = estate_vaisyas }
	}
	penalties = {
		all_power_cost = 0.05
	}
	benefits = {
		inflation_reduction = 0.15
		interest = -0.5
		production_efficiency = 0.05
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			OR = {
				inflation = 15
				num_of_loans = 15
			}
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_burghers_private_trade_fleets = {
	icon = privilege_comission_merchant_ships_for_war
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			has_port = yes
		}
		navy_size = 1
	}
	penalties = {
	}
	benefits = {
		light_ship_cost = -0.2
		global_ship_trade_power = 0.1
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			num_of_light_ship = 15
			trade_income_percentage = 0.35
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_vaisyas_private_trade_fleets = {
	icon = privilege_comission_merchant_ships_for_war
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
		any_owned_province = {
			has_port = yes
		}
		navy_size = 1
	}
	penalties = {
	}
	benefits = {
		light_ship_cost = -0.2
		global_ship_trade_power = 0.1
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			num_of_light_ship = 15
			trade_income_percentage = 0.35
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_jains_private_trade_fleets = {
	icon = privilege_comission_merchant_ships_for_war
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.05
	is_valid = {
		has_dlc = "Emperor"
		NOT = { has_estate = estate_vaisyas }
		any_owned_province = {
			has_port = yes
		}
		navy_size = 1
	}
	penalties = {
	}
	benefits = {
		light_ship_cost = -0.2
		global_ship_trade_power = 0.1
	}
	ai_will_do = {
		factor = 1
		modifier = {
			factor = 10
			num_of_light_ship = 15
			trade_income_percentage = 0.35
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_church_for_the_faith = {
	icon = privilege_recruit_inouisitor
	max_absolutism = -5
	is_valid = {
		has_dlc = "Emperor"
		NOT = { religion = confucianism }
		OR = {
			any_known_country = {
				NOT = { religion = root }
			}
			has_country_modifier = recently_force_converted_protagonist_timer
			has_country_modifier = recently_annexed_other_religion_timer
		}
	}
	can_select = {
		any_known_country = {
			NOT = { religion = root }
		}
		NOT = { has_estate_privilege = estate_church_inwards_perfection }
	}
	on_granted = {
		custom_tooltip = estate_church_for_the_faith_effect_tooltip
	}
	on_revoked = {
		custom_tooltip = estate_church_for_the_faith_effect_tooltip
	}
	conditional_modifier = {
		trigger = {
			any_known_country = {
				NOT = { religion = root }
				war_with = root
			}
		}
		modifier = {
			church_loyalty_modifier = 0.1
			land_morale = 0.05
		}
	}
	conditional_modifier = {
		trigger = {
			NOT = {
				any_known_country = {
					NOT = { religion = root }
					OR = {
						war_with = root
						truce_with = root
					}
				}
			}
			NOT = { has_country_modifier = recently_force_converted_protagonist_timer }
			NOT = { has_country_modifier = recently_annexed_other_religion_timer }
		}
		modifier = {
			church_loyalty_modifier = -0.1
			land_morale = -0.05
		}
		is_bad = yes
	}
	penalties = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_brahmins_for_the_faith = {
	icon = privilege_tolerance_heathen
	max_absolutism = -5
	is_valid = {
		has_dlc = "Emperor"
		religion = hinduism
		OR = {
			any_known_country = {
				NOT = { religion = root }
			}
			has_country_modifier = recently_force_converted_protagonist_timer
			has_country_modifier = recently_annexed_other_religion_timer
		}
	}
	can_select = {
		any_known_country = {
			NOT = { religion = root }
		}
		NOT = { has_estate_privilege = estate_church_inwards_perfection }
	}
	on_granted = {
		custom_tooltip = estate_brahmins_for_the_faith_effect_tooltip
	}
	on_revoked = {
		custom_tooltip = estate_brahmins_for_the_faith_effect_tooltip
	}
	conditional_modifier = {
		trigger = {
			any_known_country = {
				NOT = { religion = root }
				war_with = root
			}
		}
		modifier = {
			brahmins_hindu_loyalty_modifier = 0.1
			brahmins_muslim_loyalty_modifier = 0.1
			brahmins_other_loyalty_modifier = 0.1
			land_morale = 0.05
		}
	}
	conditional_modifier = {
		trigger = {
			NOT = {
				any_known_country = {
					NOT = { religion = root }
					OR = {
						war_with = root
						truce_with = root
					}
				}
			}
			NOT = { has_country_modifier = recently_force_converted_protagonist_timer }
			NOT = { has_country_modifier = recently_annexed_other_religion_timer }
		}
		modifier = {
			brahmins_hindu_loyalty_modifier = -0.1
			brahmins_muslim_loyalty_modifier = -0.1
			brahmins_other_loyalty_modifier = -0.1
			land_morale = -0.05
		}
	}
	penalties = {
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_prussian_confederation = {
	icon = privilege_royal_authority
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.1
	is_valid = {
		tag = TEU
		has_country_flag = pru_confederation_flag
	}
	on_granted = {
		custom_tooltip = prussian_confederation_privilege_tt
		add_estate_loyalty = {
			estate = estate_burghers
			loyalty = 20
		}
		change_estate_land_share = {
			estate = estate_burghers
			share = 20
		}
	}
	penalties = {
		min_autonomy = 35
	}
	benefits = {
	}
	ai_will_do = {
		factor = 7.5
		modifier = {
			factor = 1.5
			owns = 43
			NOT = { num_of_cities = 6 }
			crown_land_share = 40
			NOT = {
				estate_influence = {
					estate = estate_burghers
					influence = 70
				}
			}
		}
	}
}

estate_nobles_statutory_rights = {
	icon = privilege_grant_autonomy
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		has_estate_privilege = estate_nobles_statutory_rights
	}
	on_granted = {
		change_estate_land_share = {
			estate = all
			share = -30
		}
	}
	penalties = {
		min_autonomy = 25
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}

	cooldown_years = 20
}

estate_burghers_statutory_rights = {
	icon = privilege_grant_autonomy
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		has_estate_privilege = estate_burghers_statutory_rights
	}
	on_granted = {
		change_estate_land_share = {
			estate = all
			share = -30
		}
	}
	penalties = {
		min_autonomy = 25
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
	cooldown_years = 20
}

estate_church_statutory_rights = {
	icon = privilege_grant_autonomy
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		has_estate_privilege = estate_church_statutory_rights
	}
	on_granted = {
		change_estate_land_share = {
			estate = all
			share = -30
		}
	}
	penalties = {
		min_autonomy = 25
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
	cooldown_years = 20
}

estate_brahmins_statutory_rights = {
	icon = privilege_grant_autonomy
	max_absolutism = -5
	influence = 0.1
	is_valid = {
		has_estate_privilege = estate_brahmins_statutory_rights
	}
	on_granted = {
		change_estate_land_share = {
			estate = all
			share = -30
		}
	}
	penalties = {
		min_autonomy = 25
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
	cooldown_years = 20
}

estate_church_brahmins_at_court = {
	icon = privilege_seek_support_of_brahmins
	can_select = {
		if = {
			limit = {
				has_mission = mnd_khm_religion
			}
			mission_completed = mnd_khm_religion
		}
		else_if = {
			limit = {
				has_mission = mnd_khm_religion
			}
			mission_completed = mnd_siam_devaraja
		}
		else = {
			has_estate_privilege = estate_church_brahmins_at_court
		}
		religion_group = eastern
	}
	is_valid = {
		religion_group = eastern
		OR = {
			has_mission = mnd_khm_religion
			has_mission = mnd_siam_devaraja
			has_estate_privilege = estate_church_brahmins_at_court
		}
	}
	on_granted = {
		custom_tooltip = estate_brahmins_guaranteed_autonomy_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				religion = hinduism
			}
			add_province_modifier = {
				name = estate_brahmins_guaranteed_autonomy_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_brahmins_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_brahmins_guaranteed_autonomy_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_brahmins_guaranteed_autonomy_revoke_effect_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_brahmins_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_brahmins_guaranteed_autonomy_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_brahmins_guaranteed_autonomy_revoke_effect_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_brahmins_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_brahmins_guaranteed_autonomy_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 1000
	}
}

estate_burghers_khmer_irrigation = {
	icon = privilege_monopoly_of_goods_livestock
	can_select = {
		OR = {
			has_estate_privilege = estate_vaisyas_khmer_irrigation
			mission_completed = mnd_khm_irrigation
			mission_completed = sun_rice_production
		}
	}
	is_valid = {
		NOT = { has_estate_privilege = estate_vaisyas_khmer_irrigation }
		OR = {
			tag = LNA
			tag = KHM
			tag = SUN
			has_estate_privilege = estate_vaisyas_khmer_irrigation
		}
	}
	on_granted = {
		custom_tooltip = estate_burghers_khmer_irrigation_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = grain
			}
			add_province_modifier = {
				name = estate_burghers_khmer_irrigation_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_burghers_khmer_irrigation_mod
			}
			remove_province_modifier = estate_burghers_khmer_irrigation_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_khmer_irrigation_revoke_effect_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_khmer_irrigation_mod
			}
			remove_province_modifier = estate_burghers_khmer_irrigation_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_khmer_irrigation_revoke_effect_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_khmer_irrigation_mod
			}
			remove_province_modifier = estate_burghers_khmer_irrigation_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 1000
	}
}

estate_vaisyas_khmer_irrigation = {
	icon = privilege_monopoly_of_goods_livestock
	can_select = {
		OR = {
			mission_completed = mnd_khm_irrigation
			has_estate_privilege = estate_vaisyas_khmer_irrigation
		}
	}
	is_valid = {
		NOT = { has_estate_privilege = estate_burghers_khmer_irrigation }
		OR = {
			tag = LNA
			tag = KHM
			has_estate_privilege = estate_vaisyas_khmer_irrigation
		}
	}
	on_granted = {
		custom_tooltip = estate_burghers_khmer_irrigation_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = grain
			}
			add_province_modifier = {
				name = estate_burghers_khmer_irrigation_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_burghers_khmer_irrigation_mod
			}
			remove_province_modifier = estate_burghers_khmer_irrigation_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_khmer_irrigation_revoke_effect_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_khmer_irrigation_mod
			}
			remove_province_modifier = estate_burghers_khmer_irrigation_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_khmer_irrigation_revoke_effect_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_khmer_irrigation_mod
			}
			remove_province_modifier = estate_burghers_khmer_irrigation_mod
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 1000
	}
}

estate_church_karma_temples = {
	icon = privilege_build_jain_temple
	max_absolutism = -5
	loyalty = 0.1
	influence = 0.1
	is_valid = {
		has_dlc = "Common Sense"
		OR = {
			religion = buddhism
			religion = mahayana
			religion = vajrayana
		}
	}
	can_select = {
	}
	on_granted = {
		custom_tooltip = estate_church_karma_temples_tt
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
	}
}

estate_church_influence_temples = {
	icon = privilege_promoto_dhimmi_nobles
	max_absolutism = -5
	loyalty = 0.1
	influence = 0.1
	is_valid = {
		religion = catholic
	}
	can_select = {
		religion = catholic
	}
	on_granted = {
		custom_tooltip = estate_church_influence_temples_tt
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 10
	}
}

estate_burghers_tropical_nation = {
	icon = privilege_grant_new_world_charter
	loyalty = 0.1
	influence = 0.1
	is_valid = {
		OR = {
			has_estate_privilege = estate_burghers_tropical_nation
			technology_group = chinese
			technology_group = indian
		}
	}
	can_select = {
		capital_scope = {
			has_climate = tropical
		}
	}
	on_granted = {
		custom_tooltip = estate_burghers_tropical_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				has_climate = tropical
			}
			add_province_modifier = {
				name = estate_burghers_tropical_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_burghers_tropical_mod
			}
			remove_province_modifier = estate_burghers_tropical_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_tropical_revoke_effect_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_tropical_mod
			}
			remove_province_modifier = estate_burghers_tropical_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_tropical_revoke_effect_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_tropical_mod
			}
			remove_province_modifier = estate_burghers_tropical_mod
		}
	}
	ai_will_do = {
		factor = 1000
	}
}

estate_church_lao_animism = {
	icon = privilege_tolerance_heathen
	loyalty = -0.05
	influence = 0.6
	can_select = {
		primary_culture = lao
		religion_group = eastern
	}
	is_valid = {
		OR = {
			has_estate_privilege = estate_church_lao_animism
			AND = {
				religion_group = eastern
				primary_culture = lao
			}
		}
	}
	on_granted = {
		custom_tooltip = estate_church_lao_animism_effect_tooltip
	}
	on_granted_province = {
		if = {
			limit = {
				religion = animism
			}
			add_province_modifier = {
				name = estate_church_lao_animism_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_church_lao_animism_mod
			}
			remove_province_modifier = estate_church_lao_animism_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_church_lao_animism_revoke_effect_tooltip
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_lao_animism_mod
			}
			remove_province_modifier = estate_church_lao_animism_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_church_lao_animism_revoke_effect_tooltip
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_lao_animism_mod
			}
			remove_province_modifier = estate_church_lao_animism_mod
		}
	}
	penalties = {
		tolerance_own = -2
	}
	benefits = {
		tolerance_heathen = 5
	}
	ai_will_do = {
		factor = 1000
	}
}

estate_nobles_command_of_the_military = {
	icon = privilege_promote_purbias
	land_share = 10
	max_absolutism = -10
	influence = 0.3
	is_valid = {
	}
	can_select = {
	}
	on_granted = {
		custom_tooltip = estate_nobles_command_of_the_military_tt
	}
	penalties = {
		leader_cost = 0.2
	}
	benefits = {
		army_tradition = 1
	}
	ai_will_do = {
		factor = 0
	}
}

estate_burghers_orang_laut_alliances = {
	icon = privilege_diplo_power
	max_absolutism = -5
	loyalty = 0.1
	influence = 0.15
	can_select = {
		capital_scope = {
			region = malaya_region
		}
	}
	is_valid = {
		capital_scope = {
			region = malaya_region
		}
	}
	penalties = {
	}
	benefits = {
		global_own_trade_power = 0.25
	}
	ai_will_do = {
		factor = 10
	}
}

estate_nobles_better_integration = {
	icon = privilege_better_integration
	max_absolutism = -10
	influence = 0.15
	loyalty = 0.05
	is_valid = {
		any_subject_country = {
			OR = {
				is_subject_of_type = vassal
				is_subject_of_type = client_vassal
				is_subject_of_type = daimyo_vassal
				is_subject_of_type = personal_union
			}
		}
	}
	can_select = {
	}
	on_granted = {
		disable_annexation_penalty = yes
	}
	on_revoked = {
		enable_annexation_penalty = yes
	}
	on_invalid = {
		enable_annexation_penalty = yes
	}
	penalties = {
		reduced_liberty_desire = -15
	}
	benefits = {
		diplomatic_annexation_cost = -0.05
	}
	cooldown_years = 10
	ai_will_do = {
		factor = 10
	}
}

estate_church_religious_diplomats = {
	icon = privilege_religious_diplomats
	max_absolutism = -10
	influence = 0.15
	loyalty = 0.05
	is_valid = {
	}
	can_select = {
	}
	on_granted = {
		add_increase_same_religion_opinion = yes
	}
	on_revoked = {
		remove_increase_same_religion_opinion = yes
	}
	on_invalid = {
		remove_increase_same_religion_opinion = yes
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0	#The privilege is a little bit too niche to be really usable for the AI
	}
}

estate_church_one_faith_one_culture = {
	icon = privilege_one_faith_one_culture
	max_absolutism = -5
	influence = 0.3
	loyalty = 0.1
	land_share = 5
	is_valid = {
	}
	can_select = {
	}
	on_granted = {
		custom_tooltip = estate_church_one_faith_one_culture_gta
		custom_tooltip = estate_church_one_faith_one_culture_gtb
	}
	on_granted_province = {
		if = {
			limit = {
				religion = ROOT
				OR = {
					has_owner_accepted_culture = yes
					culture_group = ROOT
				}
			}
			add_province_modifier = {
				name = estate_church_united_faith_and_culture
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_church_united_faith_and_culture
			}
			remove_province_modifier = estate_church_united_faith_and_culture
		}
		if = {
			limit = {
				NOT = { culture_group = ROOT }
				has_owner_accepted_culture = no
			}
			add_province_modifier = {
				name = estate_church_false_culture
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_church_false_culture
			}
			remove_province_modifier = estate_church_false_culture
		}
	}
	on_revoked = {
		custom_tooltip = estate_church_one_faith_one_culture_rta
		custom_tooltip = estate_church_one_faith_one_culture_rtb
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_united_faith_and_culture
			}
			remove_province_modifier = estate_church_united_faith_and_culture
		}
		if = {
			limit = {
				has_province_modifier = estate_church_false_culture
			}
			remove_province_modifier = estate_church_false_culture
		}
	}
	on_invalid = {
		custom_tooltip = estate_church_one_faith_one_culture_rta
		custom_tooltip = estate_church_one_faith_one_culture_rtb
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_church_united_faith_and_culture
			}
			remove_province_modifier = estate_church_united_faith_and_culture
		}
		if = {
			limit = {
				has_province_modifier = estate_church_false_culture
			}
			remove_province_modifier = estate_church_false_culture
		}
	}
	penalties = {
		tolerance_heathen = -2
		tolerance_heretic = -2
	}
	benefits = {
		global_missionary_strength = 0.01
	}
	cooldown_years = 15
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			NOT = { dominant_religion = ROOT }
		}
		modifier = {
			factor = 0
			NOT = { dominant_culture = ROOT }
		}
		modifier = {
			factor = 0
			NOT = { religion = confucianism }
		}
		modifier = {
			factor = 0
			NOT = { religion = confucianism }
		}
		modifier = {
			factor = 100
			NOT = { average_autonomy = 15 }
			dominant_religion = ROOT
			dominant_culture = ROOT
		}
		modifier = {
			factor = 10
			tag = PAP
		}
		modifier = {
			factor = 0.1
			is_absolutism_active = yes
		}
	}
}

estate_nobles_neighbor_raids = {
	icon = privilege_demand_more_troops
	max_absolutism = -10
	influence = 0.2
	loyalty = 0
	is_valid = {
		NOT = { has_country_modifier = the_abolish_slavery_act }
		has_dlc = "Origins"
		OR = {
			technology_group = east_african
			technology_group = central_african
			technology_group = sub_saharan
			has_reform = steppe_horde
			has_reform = great_mongol_state_reform
		}
	}
	can_select = {
		NOT = { has_country_modifier = the_abolish_slavery_act }
	}
	on_granted = {
		enable_capital_slave_raid = yes
	}
	on_revoked = {
		disable_capital_slave_raid = yes
	}
	on_invalid = {
		disable_capital_slave_raid = yes
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0
	}
}

###FETISHIST PRIVILEGES###
#Privilege to enable cults for heirs
estate_church_heir_shrine = {
	icon = privilege_heir_cult
	max_absolutism = -10
	influence = 0.2
	loyalty = 0.05
	is_valid = {
		religion = shamanism
		has_dlc = "Rights of Man"
		NOT = { has_country_flag = heir_cult_through_missions }
		has_government_attribute = heir
	}
	can_select = {
		NOT = { has_estate_privilege = estate_church_embrace_singluar_cult }
	}
	on_granted = {
		enable_cult_for_heirs = yes
	}
	on_revoked = {
		disable_cult_for_heirs = yes
	}
	on_invalid = {
		disable_cult_for_heirs = yes
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 100
		modifier = {
			factor = 0.1
			is_absolutism_active = yes
		}
		modifier = {
			factor = 0
			has_mission = kon_collect_cults
		}
		modifier = {
			factor = 0
			has_mission = zim_cults
		}
	}
}

#Privilege to enable primary cults
estate_church_embrace_singluar_cult = {
	icon = privilege_singular_cult
	max_absolutism = -5
	influence = 0.25
	loyalty = 0.05
	is_valid = {
		religion = shamanism
		has_dlc = "Rights of Man"
	}
	can_select = {
		NOT = { has_estate_privilege = estate_church_flexible_cults }
		NOT = { has_estate_privilege = estate_church_heir_shrine }
	}
	on_granted = {
		enable_primary_cult = yes
	}
	on_revoked = {
		disable_primary_cult = yes
		add_stability = -1
	}
	on_invalid = {
		disable_primary_cult = yes
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 1000
		modifier = {
			factor = 0
			NOT = { has_mission = zim_cults }
		}
	}
}

#Privilge to enable cult switching
estate_church_flexible_cults = {
	icon = privilege_switch_hindu_deity
	max_absolutism = -10
	influence = 0.05
	is_valid = {
		religion = shamanism
		has_dlc = "Rights of Man"
		NOT = { has_country_flag = enabled_cult_switching_mission }
	}
	can_select = {
		NOT = { has_estate_privilege = estate_church_embrace_singluar_cult }
	}
	on_granted = {
		enable_cult_switching = yes
	}
	on_revoked = {
		disable_cult_switching = yes
	}
	on_invalid = {
		disable_cult_switching = yes
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 0	#Not really needed, the AI should choose the right Cult from the get-go
	}
}

###MUSLIM PRIVILEGES###
#Privilege to remove adm cost of scholars
estate_church_scholar_connections = {
	icon = privilege_recruit_minister
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.05
	is_valid = {
		religion_group = muslim
		has_dlc = "Cradle of Civilization"
	}
	can_select = {
	}
	on_granted = {
		disable_scholar_cost = yes
	}
	on_revoked = {
		enable_scholar_cost = yes
	}
	on_invalid = {
		enable_scholar_cost = yes
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 15
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

#Privilege to remove the diplo requirement for one school
estate_church_integrated_school = {
	icon = privilege_seek_support_of_clergy
	max_absolutism = -5
	influence = 0.1
	loyalty = 0
	is_valid = {
		religion_group = muslim
		has_dlc = "Cradle of Civilization"
	}
	can_select = {
	}
	on_granted = {
		enable_baseline_invite_scholar = yes
	}
	on_revoked = {
		disable_baseline_invite_scholar = yes
	}
	on_invalid = {
		disable_baseline_invite_scholar = yes
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 15
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

#Mission tree rewards
estate_burghers_hydraulic_rights = {
	icon = privilege_dev_cost
	max_absolutism = -10
	influence = 0.15
	loyalty = 0.1
	is_valid = {
		has_unlocked_estate_privilege = { estate_privilege = estate_burghers_hydraulic_rights }
	}
	can_select = {
		any_owned_province = {
			OR = {
				has_terrain = desert
				has_terrain = coastal_desert
				has_terrain = steppe
				has_terrain = savannah
			}
		}
	}
	on_granted = {
		custom_tooltip = estate_burghers_enslaving_rights_gt
		hidden_effect = {
			every_owned_province = {
				limit = {
					has_terrain = desert
				}
				add_province_modifier = {
					name = estate_burghers_hydraulic_rights_desert
					duration = -1
				}
			}
			every_owned_province = {
				limit = {
					has_terrain = coastal_desert
				}
				add_province_modifier = {
					name = estate_burghers_hydraulic_rights_coastal_desert
					duration = -1
				}
			}
			every_owned_province = {
				limit = {
					has_terrain = steppe
				}
				add_province_modifier = {
					name = estate_burghers_hydraulic_rights_steppes
					duration = -1
				}
			}
			every_owned_province = {
				limit = {
					has_terrain = savannah
				}
				add_province_modifier = {
					name = estate_burghers_hydraulic_rights_savanna
					duration = -1
				}
			}			
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_enslaving_rights_rt
		hidden_effect = {
			every_owned_province = {
				limit = {
					OR = {
						has_province_modifier = estate_burghers_hydraulic_rights_desert
						has_province_modifier = estate_burghers_hydraulic_rights_coastal_desert
						has_province_modifier = estate_burghers_hydraulic_rights_steppes
						has_province_modifier = estate_burghers_hydraulic_rights_savanna
					}
				}
				remove_province_modifier = estate_burghers_hydraulic_rights_desert
				remove_province_modifier = estate_burghers_hydraulic_rights_coastal_desert
				remove_province_modifier = estate_burghers_hydraulic_rights_steppes
				remove_province_modifier = estate_burghers_hydraulic_rights_savanna
			}
		}
	}
	penalties = {
	}
	benefits = {
	}
	ai_will_do = {
		factor = 100
		modifier = {
			factor = 2
			num_of_owned_provinces_with = {
				OR = {
					has_terrain = desert
					has_terrain = coastal_desert
					has_terrain = steppe
					has_terrain = savannah
				}
				value = 8
			}
		}
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

estate_nobles_cawa_peace_keepers = {
	icon = privilege_cawa_peacekeeper
	max_absolutism = -5
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_unlocked_estate_privilege = { estate_privilege = estate_nobles_cawa_peace_keepers }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = eth_estate_did_not_have_cawa_privilege_for_five_years
			OR = {
				NOT = { has_country_flag = picked_cawa_privilege }
				had_country_flag = {
					flag = picked_cawa_privilege
					days = 1825
				}
			}
		}
	}
	on_granted = {
		remove_estate_privilege = estate_nobles_cawa_offensive_fighters
		hidden_effect = {
			clr_country_flag = picked_cawa_privilege
			set_country_flag = picked_cawa_privilege
		}
		add_country_modifier = {
			name = estate_nobles_cawa_peace_keepers_modifier
			duration = -1
		}
	}
	on_revoked = {
		remove_country_modifier = estate_nobles_cawa_peace_keepers_modifier
	}
	on_invalid = {
		remove_country_modifier = estate_nobles_cawa_peace_keepers_modifier
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 5
	ai_will_do = {
		factor = 4
		modifier = {
			factor = 0
			NOT = { num_of_cawa = 10 }
		}
		modifier = {
			factor = 2
			is_at_war = no
		}
		modifier = {
			factor = 2
			is_in_important_war = no
		}
		modifier = {
			factor = 4
			num_of_rebel_armies = 3
		}
		modifier = {
			factor = 4
			num_of_rebel_controlled_provinces = 3
		}
		modifier = {
			factor = 4
			NOT = { stability = 0 }
		}
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
	}
}

estate_nobles_cawa_offensive_fighters = {
	icon = privilege_cawa_offensive_fighters
	max_absolutism = -5
	influence = 0.05
	loyalty = 0.05
	is_valid = {
		has_unlocked_estate_privilege = { estate_privilege = estate_nobles_cawa_offensive_fighters }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = eth_estate_did_not_have_cawa_privilege_for_five_years
			OR = {
				NOT = { has_country_flag = picked_cawa_privilege }
				had_country_flag = {
					flag = picked_cawa_privilege
					days = 1825
				}
			}
		}
	}
	on_granted = {
		remove_estate_privilege = estate_nobles_cawa_peace_keepers
		hidden_effect = {
			clr_country_flag = picked_cawa_privilege
			set_country_flag = picked_cawa_privilege
		}
		add_country_modifier = {
			name = estate_nobles_cawa_offensive_fighters_modifier
			duration = -1
		}
	}
	on_revoked = {
		remove_country_modifier = estate_nobles_cawa_offensive_fighters_modifier
	}
	on_invalid = {
		remove_country_modifier = estate_nobles_cawa_offensive_fighters_modifier
	}
	penalties = {
	}
	benefits = {
	}
	cooldown_years = 5
	ai_will_do = {
		factor = 4
		modifier = {
			factor = 0
			NOT = { num_of_cawa = 10 }
		}
		modifier = {
			factor = 5
			is_at_war = yes
		}
		modifier = {
			factor = 10
			is_in_important_war = yes
		}
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
	}
}

estate_burghers_control_over_the_mint = {
	icon = privilege_gold_mint
	max_absolutism = -30
	influence = 0.3
	loyalty = 0.05
	is_valid = {
		has_unlocked_estate_privilege = { estate_privilege = estate_burghers_control_over_the_mint }
		gold = 1
	}
	can_select = {
	}
	on_granted = {
		custom_tooltip = estate_burghers_control_over_the_mint_gt
	}
	on_granted_province = {
		if = {
			limit = {
				trade_goods = gold
			}
			add_province_modifier = {
				name = estate_burghers_control_over_gold_mine
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_burghers_control_over_gold_mine
			}
			remove_province_modifier = estate_burghers_control_over_gold_mine
		}
	}
	on_revoked = {
		custom_tooltip = estate_burghers_control_over_the_mint_rt
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_control_over_gold_mine
			}
			remove_province_modifier = estate_burghers_control_over_gold_mine
		}
	}
	on_invalid = {
		custom_tooltip = estate_burghers_control_over_the_mint_rt
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_burghers_control_over_gold_mine
			}
			remove_province_modifier = estate_burghers_control_over_gold_mine
		}
	}
	penalties = {
		all_power_cost = 0.05
	}
	benefits = {
		monthly_gold_inflation_modifier = -0.75
		gold_depletion_chance_modifier = -0.75
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0
			NOT = { gold_income_percentage = 0.2 }
		}
		modifier = {
			factor = 4
			gold_income_percentage = 0.4
		}
		modifier = {
			factor = 4
			gold_income_percentage = 0.6
		}
		modifier = {
			factor = 4
			gold_income_percentage = 0.8
		}
		modifier = {
			factor = 1000
			gold_income_percentage = 1
		}
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
	}
}

estate_dhimmi_guarantee_of_traditions = {
	icon = privilege_promoto_dhimmi_nobles
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.25
	is_valid = {
		any_owned_province = {
			NOT = { religion = root }
		}
		NOT = { has_estate_privilege = estate_burghers_enforced_interfaith_dialogue }
		has_unlocked_estate_privilege = { estate_privilege = estate_dhimmi_guarantee_of_traditions }
	}
	can_select = {
		NOT = { has_estate_privilege = estate_church_enforced_one_faith }
	}
	on_granted = {
		custom_tooltip = estate_dhimmi_guaranteed_autonomy_effect_tooltip
		hidden_effect = {
			set_country_flag = dhimmi_tolerates_wrong_religion
			remove_estate_privilege = estate_dhimmi_guaranteed_autonomy
			remove_estate_privilege = estate_dhimmi_tolerance
		}
	}
	on_granted_province = {
		if = {
			limit = {
				NOT = { religion_group = root }
			}
			add_province_modifier = {
				name = estate_dhimmi_guaranteed_autonomy_mod
				duration = -1
			}
		}
		else_if = {
			limit = {
				has_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
		}
	}
	on_revoked = {
		custom_tooltip = estate_dhimmi_guaranteed_autonomy_revoke_effect_tooltip
		hidden_effect = {
			clr_country_flag = dhimmi_tolerates_wrong_religion
		}
	}
	on_revoked_province = {
		if = {
			limit = {
				has_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
		}
	}
	on_invalid = {
		custom_tooltip = estate_dhimmi_guaranteed_autonomy_revoke_effect_tooltip
		hidden_effect = {
			clr_country_flag = dhimmi_tolerates_wrong_religion
		}
	}
	on_invalid_province = {
		if = {
			limit = {
				has_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
			}
			remove_province_modifier = estate_dhimmi_guaranteed_autonomy_mod
		}
	}
	penalties = {
		church_loyalty_modifier = -0.05
	}
	benefits = {
		tolerance_heathen = 2
	}
	ai_will_do = {
		factor = 100
		modifier = {
			factor = 10
			num_of_owned_provinces_with = {
				NOT = { religion_group = root }
				is_state_core = root
				value = 15
			}
		}
		modifier = {
			factor = 0.5
			estate_influence = {
				estate = estate_church
				influence = 75
			}
		}
		modifier = {
			factor = 0.8
			is_absolutism_active = yes
		}
		modifier = {
			factor = 0
			NOT = {
				any_owned_province = {
					NOT = { religion_group = ROOT }
				}
			}
		}
	}
}

estate_church_yakobs_churches = {
	icon = privilege_recruit_inouisitor
	max_absolutism = -5
	influence = 0.1
	loyalty = 0.1
	is_valid = {
		has_unlocked_estate_privilege = { estate_privilege = estate_church_yakobs_churches }
		religion_group = christian
	}
	can_select = {
		religion_group = christian
	}
	on_granted = {
	}
	on_revoked = {
	}
	penalties = {
		global_tax_modifier = -0.1
	}
	benefits = {
		tolerance_own = 1
		global_missionary_strength = 0.01
		monthly_reform_progress_modifier = 0.25
	}
	ai_will_do = {
		factor = 10
		modifier = {
			factor = 0.5
			current_age = age_of_discovery
		}
		modifier = {
			factor = 0.5
			is_absolutism_active = yes
		}
		modifier = {
			factor = 2
			NOT = { dominant_religion = ROOT }
		}
		modifier = {
			factor = 1000
			has_mission = eth_reform_the_negusa_government
			NOT = { mission_completed = eth_reform_the_negusa_government }
		}
	}
}

estate_nobles_grant_power_to_the_bashorun = {
	icon = privilege_royal_authority
	max_absolutism = -15
	influence = 0.1
	loyalty = 0.15
	is_valid = {
		has_unlocked_estate_privilege = { estate_privilege = estate_nobles_grant_power_to_the_bashorun }
	}
	can_select = {
		custom_trigger_tooltip = {
			tooltip = can_not_have_tributaries
			NOT = { has_reform = celestial_empire }
			NOT = { has_government_attribute = has_tributaries }
			NOT = { has_country_flag = can_create_tributaries_flag }
			NOT = { is_nomad = yes }
			NOT = { religion_group = eastern }
			NOT = { technology_group = chinese }
			NOT = { technology_group = polynesian_tech }
		}
	}
	on_granted = {
		enable_tributary_state_use_estate = yes
	}
	on_invalid = {
		disable_tributary_state_use_estate = yes
	}
	on_revoked = {
		disable_tributary_state_use_estate = yes
	}
	penalties = {
	}
	benefits = {
		stability_cost_modifier = -0.1
	}
	ai_will_do = {
		factor = 25
		modifier = {
			factor = 0
			is_absolutism_active = yes
		}
	}
}

#Government reform specific
estate_nobles_decentralized_tribe = {
	icon = privilege_decentralized
	max_absolutism = -20
	influence = 0.1
	land_share = 5
	loyalty = 0.05
	is_valid = {
		has_government_attribute = has_internal_tribes
		NOT = { has_country_flag = centralized_tribes_level_2 }
	}
	can_select = {
		NOT = { has_estate_privilege = estate_nobles_tribe_unification }
		NOT = { has_estate_privilege = estate_nobles_tribe_centralization }
	}
	can_revoke = {
		custom_trigger_tooltip = {
			tooltip = estate_nobles_decentralized_tribe_tt
			has_country_flag = centralized_tribes_level_2
		}
	}
	modifier_by_land_ownership = {
		nobles_loyalty_modifier = 0.2
		land_forcelimit_modifier = 0.2
		manpower_recovery_speed = 0.15
		global_autonomy = 0.05
	}
	mechanics = {
		exempt_from_seize_land
	}
	on_granted = {
		add_estate_loyalty = {
			estate = estate_nobles
			loyalty = 5
		}
		hidden_effect = {
			set_country_flag = centralized_tribes_level_1
		}
	}
	ai_will_do = {
		factor = 0
	}
}

estate_nobles_tribe_unification = {
	icon = privilege_unifying
	max_absolutism = -10
	influence = 0.05
	loyalty = 0
	is_valid = {
		has_government_attribute = has_internal_tribes
		has_country_flag = centralized_tribes_level_1
	}
	can_select = {
		legitimacy = 90
		NOT = { num_of_rebel_controlled_provinces = 1 }
		NOT = { num_of_rebel_armies = 1 }
		estate_loyalty = {
			estate = estate_nobles
			loyalty = 70
		}
		stability = 2
	}
	modifier_by_land_ownership = {
		nobles_loyalty_modifier = 0.1
		land_forcelimit_modifier = 0.1
		manpower_recovery_speed = 0.075
		global_autonomy = 0.025
	}
	benefits = {
		legitimacy = 0.25
	}
	on_granted = {
		tooltip = {
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -40
			}
			add_stability = -1
			remove_estate_privilege = estate_nobles_decentralized_tribe
		}
		hidden_effect = {
			set_country_flag = centralized_tribes_level_2
			country_event = {
				id = flavor_jol.100
			}
		}
	}
	can_revoke = {
		custom_trigger_tooltip = {
			tooltip = estate_nobles_tribe_unification_tt
			has_estate_privilege = estate_nobles_tribe_centralization
		}
	}
	mechanics = {
		exempt_from_seize_land
	}
	ai_will_do = {
		factor = 1000
	}
}

estate_nobles_tribe_centralization = {
	icon = privilege_centralized
	max_absolutism = 0
	influence = 0
	loyalty = 0
	is_valid = {
		has_government_attribute = has_internal_tribes
		has_country_flag = centralized_tribes_level_2
	}
	can_select = {
		legitimacy = 90
		NOT = { num_of_rebel_controlled_provinces = 1 }
		NOT = { num_of_rebel_armies = 1 }
		estate_loyalty = {
			estate = estate_nobles
			loyalty = 80
		}
		stability = 2
	}
	on_granted = {
		tooltip = {
			add_stability = -2
			add_estate_loyalty = {
				estate = estate_nobles
				loyalty = -50
			}
			change_government = monarchy
			change_government_reform_progress = 100
			remove_estate_privilege = estate_nobles_tribe_unification
			remove_estate_privilege = estate_nobles_tribe_centralization
		}
		hidden_effect = {
			clr_country_flag = centralized_tribes_level_1
			clr_country_flag = centralized_tribes_level_2
			set_country_flag = centralized_tribes_level_3
			country_event = {
				id = flavor_jol.101
			}
		}
	}
	ai_will_do = {
		factor = 1000
	}
}